1 include $(TOPDIR
)/rules.mk
3 KDIR
:=$(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)
6 $(MAKE
) -C lzma-loader
clean
9 $(MAKE
) -C lzma-loader prepare
11 lzma-loader-compile
: $(KDIR
)/vmlinux.lzma lzma-loader-prepare
12 $(MAKE
) -C lzma-loader compile KDIR
=$(KDIR
)
15 $(KDIR
)/vmlinux.lzma
: $(KDIR
)/vmlinux
16 cat
$^ |
$(STAGING_DIR
)/bin
/lzma e
-si
-so
-eos
-lc1
-lp2
-pb2
> $@ ||
(rm -f
$@
&& false
)
18 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).ari
: $(KDIR
)/vmlinux.lzma
19 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).ari
22 ifeq ($(FS
),jffs2-8MB
)
25 ifeq ($(FS
),jffs2-4MB
)
30 FSNAME
:=$(patsubst jffs2-
%,jffs2
,$(FS
))
32 ifeq ($(FS
),jffs2-4MB
)
33 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FSNAME
).ari
: $(KDIR
)/loader.elf
34 .
/addVersion
-n ArubaOS
$(KDIR
)/loader.elf
$@ version
36 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FSNAME
).ari
$(KDIR
)/root.
$(FS
)
37 @dd if
=$< of
=$@.tmp bs
=655360 conv
=sync
38 @cat
$(KDIR
)/root.
$(FS
) >> $@.tmp
39 @dd if
=$@.tmp of
=$@ bs
=3604480 conv
=sync
42 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FSNAME
).bin
47 clean: lzma-loader-clean
48 prepare
: lzma-loader-prepare
49 compile
: lzma-loader-compile
56 mkdir
-p
$(IB_DIR
)/staging_dir_
$(ARCH
)/bin
57 mkdir
-p
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)
58 cp
-fpR
$(KDIR
)/loader.elf
$(IB_DIR
)/build_
$(ARCH
)/
59 cp
-fpR
$(KDIR
)/vmlinux.lzma
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)/