14 Star 61 Fork 16

adai.design/homemaster-driver

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Makefile 1.25 KB
Copy Edit Raw Blame History
adai.design authored 2018-10-02 17:52 +08:00 . 去除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

Search