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
$(KDIR
)/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
$(KDIR
)/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
35 cp
$(LINUX_DIR
)/arch
/arm
/boot
/zImage
$(KDIR
)/zImage
38 define Image
/BuildKernel
39 cp
$(KDIR
)/zImage
$(BIN_DIR
)/openwrt-
$(BOARD
)-zImage
40 BIN_DIR
=$(BIN_DIR
) $(TOPDIR
)/scripts
/arm-magic.sh
44 $(call Image
/Build
/$(1),$(1))
47 define Image
/Build
/jffs2-64k
48 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img bs
=65536 conv
=sync
51 define Image
/Build
/jffs2-128k
52 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img bs
=131072 conv
=sync
53 $(call Image
/Build
/slug
,$(1))
56 define Image
/Build
/squashfs
57 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
58 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).img bs
=131072 conv
=sync
59 $(call Image
/Build
/slug
,$(1))
62 $(eval
$(call BuildImage
))