ar71xx: enable UART function for early_printk/console
[openwrt.git] / target / linux / ep93xx / image / Makefile
1 #
2 # Copyright (C) 2009-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 UIMAGE:=$(BIN_DIR)/$(IMG_PREFIX)-uImage
11 fs_squash:=squashfs-only
12 fs_all:=all
13 fs_4k:=4k
14 fs_64k:=64k
15 fs_128k:=128k
16 ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
17 fs_squash:=initramfs
18 fs_all:=initramfs
19 fs_4k:=initramfs
20 fs_64k:=initramfs
21 fs_128k:=initramfs
22 UIMAGE:=$(BIN_DIR)/$(IMG_PREFIX)-uImage-initramfs
23 endif
24
25
26 define Image/Prepare
27 cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
28 endef
29
30 define Image/BuildKernel
31 cp $(KDIR)/uImage $(UIMAGE)
32 endef
33
34 define Image/Build/jffs2-64k
35 dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img bs=64k conv=sync
36 endef
37
38 define Image/Build/jffs2-128k
39 dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img bs=128k conv=sync
40 endef
41
42 define Image/Build/squashfs
43 $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
44 dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img bs=128k conv=sync
45 endef
46
47 define Image/Build
48 $(call Image/Build/$(1),$(1))
49 endef
50
51 $(eval $(call BuildImage))
This page took 0.044782 seconds and 5 git commands to generate.