targets: prepare for supporting normal and initramfs images
[openwrt.git] / target / linux / omap24xx / image / Makefile
1
2 # Copyright (C) 2010 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 NAND_BLOCKSIZE=2048:128k
11
12 define Image/BuildKernel
13         $(CP) $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-zImage
14         chmod 0644 $(BIN_DIR)/$(IMG_PREFIX)-zImage
15 endef
16
17 define Image/Build/squashfs
18     $(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-root.$(1))
19 endef
20
21 define Image/Build
22         $(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-root.$(1)
23         $(call Image/Build/$(1),$(1))
24 endef
25
26
27 $(eval $(call BuildImage))