1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR
)/rules.mk
5 include $(ADK_TOPDIR
)/mk
/kernel-build.mk
6 include $(ADK_TOPDIR
)/mk
/image.mk
8 QEMU_ARGS
:=${ADK_QEMU_ARGS}
9 ifeq ($(ADK_TARGET_CPU_XTENSA_DC233C
),y
)
11 QEMU_ARGS
+=-cpu dc233c
-m
128
12 KERNEL
:=$(LINUX_DIR
)/arch
/xtensa
/boot
/Image.elf
14 ifeq ($(ADK_TARGET_CPU_XTENSA_DC232B
),y
)
16 QEMU_ARGS
+=-cpu dc232b
17 KERNEL
:=$(LINUX_DIR
)/arch
/xtensa
/boot
/uImage
19 ifeq ($(ADK_TARGET_CPU_XTENSA_DE212
),y
)
20 QEMU_ARGS
+=-M kc705-nommu
21 QEMU_ARGS
+=-cpu de212
-m
256
22 KERNEL
:=$(LINUX_DIR
)/arch
/xtensa
/boot
/Image.elf
24 ifeq ($(ADK_TARGET_CPU_XTENSA_KC705_BE
),y
)
25 KERNEL
:=$(LINUX_DIR
)/arch
/xtensa
/boot
/uImage
29 ifeq ($(ADK_TARGET_FS
),archive
)
31 @echo
"The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
32 ifeq ($(ADK_TARGET_QEMU
),y
)
33 @echo
'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
34 @echo
"Use following command to create a QEMU Image:"
35 @echo
"./scripts/create.sh qemu-${ADK_TARGET_CPU_ARCH}.img $(FW_DIR)/$(ROOTFSTARBALL)"
36 @echo
"Start qemu with following options:"
37 @echo
'qemu-system-${ADK_TARGET_CPU_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL) qemu-${ADK_TARGET_CPU_ARCH}.img'
40 ifeq ($(ADK_TARGET_FS
),initramfs
)
42 @echo
'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
43 @echo
'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
44 ifeq ($(ADK_TARGET_QEMU
),y
)
45 @echo
"Start qemu with following command line:"
46 @echo
'qemu-system-${ADK_TARGET_CPU_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
49 ifeq ($(ADK_TARGET_FS
),initramfsarchive
)
51 @echo
'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
52 @echo
"The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
54 ifeq ($(ADK_TARGET_FS
),initramfspiggyback
)
56 @echo
'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
57 ifeq ($(ADK_TARGET_QEMU
),y
)
58 @echo
"Start qemu with following command line:"
59 @echo
'qemu-system-${ADK_TARGET_CPU_ARCH} ${QEMU_ARGS} -kernel $(FW_DIR)/$(TARGET_KERNEL)'
62 ifeq ($(ADK_TARGET_FS
),nfsroot
)
64 @echo
'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
65 @echo
"The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
69 @cp
$(KERNEL
) $(BUILD_DIR
)/$(TARGET_KERNEL
)
71 kernel-install
: kernel-strip
72 @cp
$(BUILD_DIR
)/$(TARGET_KERNEL
) $(FW_DIR
)/$(TARGET_KERNEL
)
74 # filesystem specific targets
75 ifeq ($(ADK_TARGET_FS
),archive
)
76 imageinstall
: $(FW_DIR
)/$(ROOTFSTARBALL
) targethelp
78 ifeq ($(ADK_TARGET_FS
),initramfs
)
79 imageinstall
: kernel-install
$(FW_DIR
)/$(INITRAMFS
) targethelp
81 ifeq ($(ADK_TARGET_FS
),initramfsarchive
)
82 imageinstall
: kernel-install
$(FW_DIR
)/$(ROOTFSUSERTARBALL
) targethelp
84 ifeq ($(ADK_TARGET_FS
),initramfspiggyback
)
85 imageinstall
: createinitramfs targethelp
87 ifeq ($(ADK_TARGET_FS
),nfsroot
)
88 imageinstall
: kernel-install
$(FW_DIR
)/$(ROOTFSUSERTARBALL
) targethelp