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
).ari
: $(KDIR
)/vmlinux.lzma
19 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
).ari
23 FSNAME
:=$(patsubst jffs2-
%,jffs2
,$(FS
))
25 ifeq ($(FS
),jffs2-4MB
)
26 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
).ari
: $(KDIR
)/loader.elf
27 .
/addVersion
-n ArubaOS
$(KDIR
)/loader.elf
$@ version
29 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
).ari
34 clean: lzma-loader-clean
35 prepare
: lzma-loader-prepare
36 compile
: lzma-loader-compile
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
)/