init: add source codes from tenda

This commit is contained in:
Shen Mintao
2024-12-18 16:31:57 +08:00
parent ef6411abe8
commit 1d404e3bc6
128 changed files with 74206 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#CROSS_COMPILE := /opt/toolchains/mips-gcc540-glibc222-64bit-r3.3.0/bin/mips-linux-gnu-
LDFLAGS := -lpthread
default: all
all: wifi_test bt_test
wifi_test: wifi_test.o
$(CROSS_COMPILE)gcc $+ -o $@
bt_test: bt_test.o
$(CROSS_COMPILE)gcc $+ $(LDFLAGS) -o $@
%.o: %.c
$(CROSS_COMPILE)gcc -c $+ -o $@
clean:
rm *.o wifi_test bt_test
install:
sudo cp wifi_test /sbin
sudo cp bt_test /sbin