2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/image.mk
10 define Image
/Build
/slug
11 BIN_DIR
=$(BIN_DIR
) $(TOPDIR
)/scripts
/slugimage.pl \
12 -L
$(BIN_DIR
)/apex-nslu2-armeb.bin \
13 -k
$(BIN_DIR
)/openwrt-nslu2-zImage \
14 -r rootfs
:$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img \
15 -p
-o
$(BIN_DIR
)/openwrt-nslu2-
$(1).bin
16 BIN_DIR
=$(BIN_DIR
) $(TOPDIR
)/scripts
/slugimage.pl \
17 -F
-L
$(BIN_DIR
)/apex-nslu2-16mb-armeb.bin \
18 -k
$(BIN_DIR
)/openwrt-nslu2-zImage \
19 -r rootfs
:$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img \
20 -p
-o
$(BIN_DIR
)/openwrt-nslu2-
$(1)-16mb.bin
36 cp
$(LINUX_DIR
)/arch
/arm
/boot
/zImage
$(KDIR
)/zImage
39 define Image
/BuildKernel
40 cp
$(KDIR
)/zImage
$(BIN_DIR
)/openwrt-
$(BOARD
)-zImage
41 BIN_DIR
=$(BIN_DIR
) $(TOPDIR
)/scripts
/arm-magic.sh
45 $(call Image
/Build
/$(1),$(1))
48 define Image
/Build
/jffs2-64k
49 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img bs
=65536 conv
=sync
52 define Image
/Build
/jffs2-128k
53 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img bs
=131072 conv
=sync
54 $(call Image
/Build
/slug
,$(1))
57 define Image
/Build
/squashfs
58 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
59 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img bs
=131072 conv
=sync
60 $(call Image
/Build
/slug
,$(1))
63 $(eval
$(call BuildImage
))