代码拉取完成,页面将自动刷新
#
# HomeMaster Driver 编译
#
obj-m += homemaster.o
homemaster-objs := master.o platform.o platform_ht.o
homemaster-objs += platform_light.o platform_oled.o platform_infrared.o
PWD=$(shell pwd)
export OPENWRT = /Volumes/Developer/widora/openwrt
export STAGING_DIR = ${OPENWRT}/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin
export KERNEL_DIR = ${OPENWRT}/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7688/linux-3.18.29
export LD = ${OPENWRT}/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-ld
export TOOLCHAIN = ${OPENWRT}/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-
export CC = ${OPENWRT}/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-uclibc-gcc
all:
make -C $(KERNEL_DIR) ARCH=mips \
CROSS_COMPILE=$(TOOLCHAIN) \
M=$(PWD) \
modules
@make clean_tmp
remote:
scp -r homemaster.ko root@openwrt.local:~
clean_tmp:
@rm -f *.o
@rm -f .*.cmd
@rm -rf *.mod
@rm -f *.mod.c
@rm -rf .tmp_versions
@rm -f *.order
@rm -f *.symvers
clean:
rm -f *.ko
rm -f *.o
rm -f .*.cmd
rm -rf *.mod
rm -f *.mod.c
rm -rf .tmp_versions
rm -f *.order
rm -f *.symvers
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。