linux+arc: update kernel
[openadk.git] / target / nds32 / Makefile
blob146491b3b5bddf642648bfdec20d820c26d1a704
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)
9 ifeq ($(ADK_TARGET_KERNEL_IMAGE),y)
10 KERNEL:=$(LINUX_DIR)/arch/nds32/boot/Image
11 endif
13 # target helper text
14 ifeq ($(ADK_TARGET_FS),archive)
15 targethelp:
16 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
17 endif
18 ifeq ($(ADK_TARGET_FS),initramfs)
19 targethelp:
20 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
21 @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
22 endif
23 ifeq ($(ADK_TARGET_FS),initramfsarchive)
24 targethelp:
25 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
26 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
27 endif
28 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
29 targethelp:
30 @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
31 endif
32 ifeq ($(ADK_TARGET_FS),nfsroot)
33 targethelp:
34 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
35 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
36 endif
38 kernel-strip:
39 @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
41 kernel-install: kernel-strip
42 @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
44 # filesystem specific targets
45 ifeq ($(ADK_TARGET_FS),archive)
46 imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
47 endif
48 ifeq ($(ADK_TARGET_FS),initramfs)
49 imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
50 endif
51 ifeq ($(ADK_TARGET_FS),initramfsarchive)
52 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
53 endif
54 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
55 imageinstall: createinitramfs targethelp
56 endif
57 ifeq ($(ADK_TARGET_FS),nfsroot)
58 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
59 endif