add proper email addresses to the comment headers
[openwrt.git] / target / linux / ixp4xx / image / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8 include $(INCLUDE_DIR)/image.mk
9
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
21 endef
22
23 define Build/Compile
24 $(MAKE) -C apex \
25 BUILD_DIR="$(KDIR)" \
26 TARGET="$(KDIR)" \
27 compile
28 endef
29
30 define Build/Clean
31 $(MAKE) -C apex clean
32 endef
33
34 define Image/Prepare
35 cp $(LINUX_DIR)/arch/arm/boot/zImage $(KDIR)/zImage
36 endef
37
38 define Image/BuildKernel
39 cp $(KDIR)/zImage $(BIN_DIR)/openwrt-$(BOARD)-zImage
40 BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/arm-magic.sh
41 endef
42
43 define Image/Build
44 $(call Image/Build/$(1),$(1))
45 endef
46
47 define Image/Build/jffs2-64k
48 dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=65536 conv=sync
49 endef
50
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))
54 endef
55
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))
60 endef
61
62 $(eval $(call BuildImage))
This page took 0.050109 seconds and 5 git commands to generate.