fix "make target/linux/package/*-*" targets
[openwrt.git] / openwrt / target / linux / image / aruba / Makefile
1 include $(TOPDIR)/rules.mk
2
3 LOADADDR = 0x81000000 # RAM start + 16M
4 KERNEL_ENTRY = 0x80100000
5 RAMSIZE = 0x00100000 # 1MB
6
7 LOADER_MAKEOPTS= \
8 KDIR=$(KDIR) \
9 LOADADDR=$(LOADADDR) \
10 KERNEL_ENTRY=$(KERNEL_ENTRY) \
11 RAMSIZE=$(RAMSIZE)
12
13 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)
14
15 lzma-loader-clean:
16 $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) clean
17
18 lzma-loader-prepare:
19 $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) prepare
20
21 lzma-loader-compile: $(KDIR)/vmlinux.lzma lzma-loader-prepare
22 $(MAKE) -C ../generic/lzma-loader $(LOADER_MAKEOPTS) compile
23
24 ifeq ($(IB),)
25 $(KDIR)/vmlinux.lzma: $(KDIR)/vmlinux
26 cat $^ | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $@ || (rm -f $@ && false)
27
28 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari: $(KDIR)/vmlinux.lzma
29 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari
30 endif
31
32 ifeq ($(KERNEL),2.6)
33 FSNAME:=$(patsubst jffs2-%,jffs2,$(FS))
34
35 ifeq ($(FS),jffs2-4MB)
36 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari: $(KDIR)/loader.elf
37 ./addVersion -n ArubaOS $(KDIR)/loader.elf $@ version
38
39 ifneq ($(BR2_ARUBA_RAMDISK),y)
40 $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FSNAME).bin: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari $(KDIR)/root.$(FS)
41 @dd if=$< of=$@.tmp bs=655360 conv=sync
42 @cat $(KDIR)/root.$(FS) >> $@.tmp
43 @dd if=$@.tmp of=$@ bs=3604480 conv=sync
44 @rm -f $@.tmp
45
46 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL)-$(FSNAME).bin
47 endif
48
49 install: $(BIN_DIR)/openwrt-$(BOARD)-$(KERNEL).ari
50 endif
51 endif
52
53 ifeq ($(IB),)
54 clean: lzma-loader-clean
55 prepare: lzma-loader-prepare
56 compile: lzma-loader-compile
57 else
58 clean:
59 prepare:
60 compile:
61 endif
62 install-ib:
63 mkdir -p $(IB_DIR)/staging_dir_$(ARCH)/bin
64 mkdir -p $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)
65 cp -fpR $(KDIR)/loader.elf $(IB_DIR)/build_$(ARCH)/
66 cp -fpR $(KDIR)/vmlinux.lzma $(IB_DIR)/build_$(ARCH)/linux-$(KERNEL)-$(BOARD)/
This page took 0.045678 seconds and 5 git commands to generate.