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 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
36 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FSNAME
).bin
39 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
).ari
44 clean: lzma-loader-clean
45 prepare
: lzma-loader-prepare
46 compile
: lzma-loader-compile
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
)/