Hardware Design: SIE
Sign in or create your account | Project List | Help
Hardware Design: SIE Git Source Tree
Root/
| 1 | EXTRA_CFLAGS += -Wall |
| 2 | OPENWRT_BASE = /home/ari/sie/p/openwrt-xburst |
| 3 | KERNEL_SRC = $(OPENWRT_BASE)/build_dir/linux-xburst_qi_lb60/linux-2.6.32.16/ |
| 4 | CC = $(OPENWRT_BASE)/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.32/usr/bin/mipsel-openwrt-linux-gcc |
| 5 | CROSS_COMPILE = $(OPENWRT_BASE)/staging_dir/toolchain-mipsel_gcc-4.3.3+cs_uClibc-0.9.32/usr/bin/mipsel-openwrt-linux- |
| 6 | NANO_IP = 192.168.254.101 |
| 7 | |
| 8 | obj-m += ps2_kb.o ps2_ms.o#hello.o memory.o digTest.o |
| 9 | all: driver #main |
| 10 | |
| 11 | driver: |
| 12 | make -C $(KERNEL_SRC) M=$(PWD) ARCH=mips CROSS_COMPILE=$(CROSS_COMPILE) modules |
| 13 | clean: |
| 14 | make -C $(KERNEL_SRC) M=$(PWD) ARCH=mips CROSS_COMPILE=$(CROSS_COMPILE) clean |
| 15 | rm -f *.o Modules.symvers |
| 16 | |
| 17 | cleanall: |
| 18 | make -C $(KERNEL_SRC) M=$(PWD) ARCH=mips CROSS_COMPILE=$(CROSS_COMPILE) clean |
| 19 | rm -f *.o *.c~ Makefile~ main.o main Modules.symvers |
| 20 | |
| 21 | upload: all |
| 22 | scp ps2_ms.ko root@$(NANO_IP):~/ |
| 23 | |
| 24 | main: main.o |
| 25 | |
| 26 | PREPROCESS.c = $(CC) $(CFLAGS) $(TARGET_ARCH) -E -Wp,-C,-dD,-dI |
| 27 | %.pp : %.c FORCE |
| 28 | $(PREPROCESS.c) $< > $@ |
| 29 |
Branches:
master
