[mpc83xx]: do old style image generation for the mpc8377wlan, as the current bootload...
[openwrt.git] / target / linux / avr32 / image / Makefile
1 #
2 # Copyright (C) 2007-2008 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 ifneq ($(CONFIG_AVR32_UBOOT),)
12 define Build/Clean
13 $(MAKE) -C u-boot clean
14 endef
15
16 define Build/Compile
17 $(MAKE) -C u-boot compile
18 endef
19 endif
20
21 define Image/Prepare
22 cp $(LINUX_DIR)/arch/avr32/boot/images/uImage $(KDIR)/uImage
23 endef
24
25 define Image/BuildKernel
26 cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
27
28 $(STAGING_DIR_HOST)/bin/lzma e $(LINUX_DIR)/arch/avr32/boot/images/vmlinux.bin $(KDIR)/vmlinux.lzma
29 mkimage -A avr32 -O linux -T kernel -a 0x10000000 -C lzma \
30 -e 0x90000000 \
31 -n 'OpenWrt Linux-$(LINUX_VERSION)' \
32 -d $(KDIR)/vmlinux.lzma $(KDIR)/uImage-lzma
33
34 cp $(KDIR)/uImage-lzma $(BIN_DIR)/openwrt-$(BOARD)-uImage-lzma
35 endef
36
37 define Image/Build
38 $(call Image/Build/$(1),$(1))
39 endef
40
41 define Image/Build/squashfs
42 $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
43 ( \
44 dd if=$(KDIR)/uImage bs=1024k conv=sync; \
45 dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
46 ) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
47 endef
48
49 define Image/Build/jffs2-64k
50 ( \
51 dd if=$(KDIR)/uImage bs=1024k conv=sync; \
52 dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
53 ) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
54 endef
55
56 $(eval $(call BuildImage))
This page took 0.046091 seconds and 5 git commands to generate.