remove duplicate package
[openadk.git] / target / tile / Makefile
blobff069bba13eba76ffca4c7d92c64c416d4ecac7e
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)/vmlinux
9 OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id
11 # target helper text
12 ifeq ($(ADK_TARGET_FS),initramfs)
13 targethelp:
14 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
15 @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
16 endif
17 ifeq ($(ADK_TARGET_FS),initramfsarchive)
18 targethelp:
19 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
20 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
21 endif
22 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
23 targethelp:
24 @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
25 endif
26 ifeq ($(ADK_TARGET_FS),nfsroot)
27 targethelp:
28 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
29 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
30 endif
32 kernel-strip:
33 $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
35 kernel-install: kernel-strip
36 @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
38 # filesystem specific targets
39 ifeq ($(ADK_TARGET_FS),initramfs)
40 imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
41 endif
42 ifeq ($(ADK_TARGET_FS),initramfsarchive)
43 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
44 endif
45 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
46 imageinstall: createinitramfs targethelp
47 endif
48 ifeq ($(ADK_TARGET_FS),nfsroot)
49 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
50 endif