imgtec-ci20: genimage config/ u-boot env
[openadk.git] / target / frv / Makefile
blob4935ff2c4c16100b406ebebc570352672b163887
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)
10 # target helper text
11 ifeq ($(ADK_TARGET_FS),archive)
12 targethelp:
13 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
14 endif
15 ifeq ($(ADK_TARGET_FS),initramfs)
16 targethelp:
17 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
18 @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
19 endif
20 ifeq ($(ADK_TARGET_FS),initramfsarchive)
21 targethelp:
22 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
23 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
24 endif
25 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
26 targethelp:
27 @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
28 ifeq ($(ADK_TARGET_SIM),y)
29 @echo "Run the simulator via:"
30 @echo '$(TARGET_CROSS)run --environment operating --model fr400 $(FW_DIR)/$(TARGET_KERNEL)'
31 endif
32 endif
33 ifeq ($(ADK_TARGET_FS),nfsroot)
34 targethelp:
35 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
36 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
37 endif
39 kernel-strip:
40 @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
42 kernel-install: kernel-strip
43 @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
45 # filesystem specific targets
46 ifeq ($(ADK_TARGET_FS),archive)
47 imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
48 endif
49 ifeq ($(ADK_TARGET_FS),initramfs)
50 imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
51 endif
52 ifeq ($(ADK_TARGET_FS),initramfsarchive)
53 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
54 endif
55 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
56 imageinstall: createinitramfs targethelp
57 endif
58 ifeq ($(ADK_TARGET_FS),nfsroot)
59 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
60 endif