2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/image.mk
11 -rm -rf
$(KDIR
)/linux-system.axf
12 cp
$(LINUX_DIR
)/arch
/$(LINUX_KARCH
)/boot
/Image
$(KDIR
)/Image
13 $(MAKE
) -C boot-wrapper
clean
14 $(MAKE
) -C boot-wrapper compile
18 $(MAKE
) -C boot-wrapper
clean
21 define Image
/Build
/QemuVirt
22 $(CP
) $(KDIR
)/Image
$(BIN_DIR
)/openwrt-
$(BOARD
)-qemu-virt.Image
23 ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS
),)
24 $(CP
) $(KDIR
)/Image-initramfs
$(BIN_DIR
)/openwrt-
$(BOARD
)-qemu-virt-initramfs.Image
28 define Image
/Build
/VexpressFoundation
29 $(CP
) $(KDIR
)/linux-system.axf
$(BIN_DIR
)/openwrt-
$(BOARD
)-vexpress-foundation.axf
32 define Image
/BuildKernel
33 $(call Image
/Build
/QemuVirt
)
34 $(call Image
/Build
/VexpressFoundation
)
37 define Image
/Build
/squashfs
38 $(call prepare_generic_squashfs
,$(KDIR
)/root.squashfs
)
42 $(call Image
/Build
/$(1))
43 dd if
=$(KDIR
)/root.
$(1) of
=$(BIN_DIR
)/openwrt-
$(BOARD
)-root.
$(1) bs
=128k conv
=sync
46 $(eval
$(call BuildImage
))