move natsemi module into the kernel
[openwrt.git] / target / linux / image / aruba / Makefile
1 include $(TOPDIR)/rules.mk
2
3 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
4
5 lzma-loader-clean:
6 $(MAKE) -C lzma-loader clean
7
8 lzma-loader-prepare:
9 $(MAKE) -C lzma-loader prepare
10
11 lzma-loader-compile: $(KDIR)/vmlinux.lzma lzma-loader-prepare
12 $(MAKE) -C lzma-loader compile KDIR=$(KDIR)
13
14 ifeq ($(IB),)
15 $(KDIR)/vmlinux.lzma: $(KDIR)/vmlinux
16 cat $^ | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $@ || (rm -f $@ && false)
17
18 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari: $(KDIR)/vmlinux.lzma
19 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari
20 endif
21
22 ifeq ($(KERNEL),2.6)
23 FSNAME:=$(patsubst jffs2-%,jffs2,$(FS))
24
25 ifeq ($(FS),jffs2-4MB)
26 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari: $(KDIR)/loader.elf
27 ./addVersion -n ArubaOS $(KDIR)/loader.elf $@ version
28
29 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari
30 endif
31 endif
32
33 ifeq ($(IB),)
34 clean: lzma-loader-clean
35 prepare: lzma-loader-prepare
36 compile: lzma-loader-compile
37 else
38 clean:
39 prepare:
40 compile:
41 endif
42 install-ib:
43 mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
44 mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
45 cp -fpR $(KDIR)/loader.elf $(IB_DIR)/build_$(ARCH)/
46 cp -fpR $(KDIR)/vmlinux.lzma $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
This page took 0.049166 seconds and 5 git commands to generate.