14 Star 60 Fork 15

adai.design/homemaster-driver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
adai.design 提交于 2018-10-02 17:52 . 去除433模块cc1101
#
# 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/adaidesigner/homemaster-driver.git
git@gitee.com:adaidesigner/homemaster-driver.git
adaidesigner
homemaster-driver
homemaster-driver
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385