1 include $(TOPDIR
)/rules.mk
3 LOADADDR
= 0x81000000 # RAM start + 16M
4 KERNEL_ENTRY
= 0x80100000
5 RAMSIZE
= 0x00100000 # 1MB
10 KERNEL_ENTRY
=$(KERNEL_ENTRY
) \
13 KDIR
:=$(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)
16 $(MAKE
) -C ..
/generic
/lzma-loader
$(LOADER_MAKEOPTS
) clean
19 $(MAKE
) -C ..
/generic
/lzma-loader
$(LOADER_MAKEOPTS
) prepare
21 lzma-loader-compile
: $(KDIR
)/vmlinux.lzma lzma-loader-prepare
22 $(MAKE
) -C ..
/generic
/lzma-loader
$(LOADER_MAKEOPTS
) compile
25 $(KDIR
)/vmlinux.lzma
: $(KDIR
)/vmlinux
26 cat
$^ |
$(STAGING_DIR
)/bin
/lzma e
-si
-so
-eos
-lc1
-lp2
-pb2
> $@ ||
(rm -f
$@
&& false
)
28 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
).ari
: $(KDIR
)/vmlinux.lzma
29 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
).ari
33 FSNAME
:=$(patsubst jffs2-
%,jffs2
,$(FS
))
35 ifeq ($(FS
),jffs2-4MB
)
36 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
).ari
: $(KDIR
)/loader.elf
37 .
/addVersion
-n ArubaOS
$(KDIR
)/loader.elf
$@ version
39 ifneq ($(CONFIG_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
46 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FSNAME
).bin
49 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
).ari
54 clean: lzma-loader-clean
55 prepare
: lzma-loader-prepare
56 compile
: lzma-loader-compile
63 mkdir
-p
$(IB_DIR
)/staging_dir_
$(ARCH
)/bin
64 mkdir
-p
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)
65 $(CP
) $(KDIR
)/loader.elf
$(IB_DIR
)/build_
$(ARCH
)/
66 $(CP
) $(KDIR
)/vmlinux.lzma
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)/