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 KERNEL
:=$(LINUX_DIR
)/$(ADK_TARGET_KERNEL
)
11 ifeq ($(ADK_TARGET_FS
),archive
)
13 @echo
"The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
15 ifeq ($(ADK_TARGET_FS
),initramfs
)
17 @echo
'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
18 @echo
'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
20 ifeq ($(ADK_TARGET_FS
),initramfsarchive
)
22 @echo
'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
23 @echo
"The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
25 ifeq ($(ADK_TARGET_FS
),initramfspiggyback
)
27 @echo
'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
28 ifeq ($(ADK_TARGET_LITTLE_ENDIAN
),y
)
29 ifeq ($(ADK_TARGET_SYSTEM_NSIM_ARCV1
),y
)
30 @echo
'./scripts/nsim.sh arcv1 $(FW_DIR)/${TARGET_KERNEL}'
32 ifeq ($(ADK_TARGET_SYSTEM_NSIM_ARCV2
),y
)
33 @echo
'./scripts/nsim.sh arcv2 $(FW_DIR)/${TARGET_KERNEL}'
36 ifeq ($(ADK_TARGET_BIG_ENDIAN
),y
)
37 ifeq ($(ADK_TARGET_SYSTEM_NSIM_ARCV1
),y
)
38 @echo
'./scripts/nsim.sh arcv1-be $(FW_DIR)/${TARGET_KERNEL}'
40 ifeq ($(ADK_TARGET_SYSTEM_NSIM_ARCV2
),y
)
41 @echo
'./scripts/nsim.sh arcv2-be $(FW_DIR)/${TARGET_KERNEL}'
45 ifeq ($(ADK_TARGET_FS
),nfsroot
)
47 @echo
'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
48 @echo
"The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
52 @cp
$(KERNEL
) $(BUILD_DIR
)/$(TARGET_KERNEL
)
54 kernel-install
: kernel-strip
55 @cp
$(BUILD_DIR
)/$(TARGET_KERNEL
) $(FW_DIR
)/$(TARGET_KERNEL
)
57 # filesystem specific targets
58 ifeq ($(ADK_TARGET_FS
),archive
)
59 imageinstall
: $(FW_DIR
)/$(ROOTFSTARBALL
) targethelp
61 ifeq ($(ADK_TARGET_FS
),initramfs
)
62 imageinstall
: kernel-install
$(FW_DIR
)/$(INITRAMFS
) targethelp
64 ifeq ($(ADK_TARGET_FS
),initramfsarchive
)
65 imageinstall
: kernel-install
$(FW_DIR
)/$(ROOTFSUSERTARBALL
) targethelp
67 ifeq ($(ADK_TARGET_FS
),initramfspiggyback
)
68 imageinstall
: createinitramfs targethelp
70 ifeq ($(ADK_TARGET_FS
),nfsroot
)
71 imageinstall
: kernel-install
$(FW_DIR
)/$(ROOTFSUSERTARBALL
) targethelp