[kernel] rename 014-samsung_flash patch to a better name, thanks maddes
[openwrt.git] / target / linux / etrax / image / Makefile
1 #
2 # Copyright (C) 2006-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 define Image/BuildKernel
11 cp $(KDIR)/vmlinuz $(BIN_DIR)/$(IMG_PREFIX)-zImage
12 endef
13
14 define Image/Prepare
15 cp $(LINUX_DIR)/arch/cris/boot/zImage $(KDIR)/vmlinuz
16 $(MAKE) -C e100boot compile
17 $(MAKE) -C mkfimage compile
18 $(INSTALL_BIN) ./boot_linux $(BIN_DIR)
19 endef
20
21 define Image/Build/generic
22 mkfimage $(KDIR)/vmlinuz $(KDIR)/vmlinuz.tmp
23 cat $(KDIR)/vmlinuz.tmp $(KDIR)/root.$(1) > $(KDIR)/fimage.$(1).tmp
24 dd if=$(KDIR)/fimage.$(1).tmp of=$(KDIR)/fimage.$(1) bs=$(2) conv=sync
25 cp $(KDIR)/fimage.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-fimage
26 endef
27
28 define Image/Build/jffs2-64k
29 $(call prepare_generic_jffs-64k,$(KDIR)/root.jff2-64k)
30 $(call Image/Build/generic,$(1),4194304)
31 endef
32
33 define Image/Build/squashfs
34 $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
35 $(call Image/Build/generic,$(1),4194304)
36 endef
37
38 define Image/Build
39 $(call Image/Build/$(1),$(1))
40 endef
41
42 $(eval $(call BuildImage))
This page took 0.040298 seconds and 5 git commands to generate.