upgrade avr32 to 2.6.27
[openwrt.git] / target / linux / etrax / 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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/image.mk
10
11 define Image/BuildKernel
12 cp $(KDIR)/vmlinuz $(BIN_DIR)/openwrt-$(BOARD)-zImage
13 endef
14
15 define Image/Prepare
16 cp $(LINUX_DIR)/arch/cris/boot/zImage $(KDIR)/vmlinuz
17 $(MAKE) -C e100boot compile
18 $(MAKE) -C mkfimage compile
19 $(INSTALL_BIN) ./boot_linux $(BIN_DIR)
20 endef
21
22 define Image/Build/generic
23 mkfimage $(KDIR)/vmlinuz $(KDIR)/vmlinuz.tmp
24 cat $(KDIR)/vmlinuz.tmp $(KDIR)/root.$(1) > $(KDIR)/fimage.$(1).tmp
25 dd if=$(KDIR)/fimage.$(1).tmp of=$(KDIR)/fimage.$(1) bs=$(2) conv=sync
26 cp $(KDIR)/fimage.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1)-fimage
27 endef
28
29 define Image/Build/jffs2-64k
30 $(call prepare_generic_jffs-64k,$(KDIR)/root.jff2-64k)
31 $(call Image/Build/generic,$(1),4194304)
32 endef
33
34 define Image/Build/squashfs
35 $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
36 $(call Image/Build/generic,$(1),4194304)
37 endef
38
39 define Image/Build
40 $(call Image/Build/$(1),$(1))
41 endef
42
43 $(eval $(call BuildImage))
This page took 0.054546 seconds and 5 git commands to generate.