Add a toggle for ramdisk support
[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 ifneq ($(BR2_ARUBA_RAMDISK),y)
30 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FSNAME).bin: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari $(KDIR)/root.$(FS)
31 @dd if=$< of=$@.tmp bs=655360 conv=sync
32 @cat $(KDIR)/root.$(FS) >> $@.tmp
33 @dd if=$@.tmp of=$@ bs=3604480 conv=sync
34 @rm -f $@.tmp
35
36 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FSNAME).bin
37 endif
38
39 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari
40 endif
41 endif
42
43 ifeq ($(IB),)
44 clean: lzma-loader-clean
45 prepare: lzma-loader-prepare
46 compile: lzma-loader-compile
47 else
48 clean:
49 prepare:
50 compile:
51 endif
52 install-ib:
53 mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
54 mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
55 cp -fpR $(KDIR)/loader.elf $(IB_DIR)/build_$(ARCH)/
56 cp -fpR $(KDIR)/vmlinux.lzma $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
This page took 0.04387 seconds and 5 git commands to generate.