tinc: update to 1.0.36
[openadk.git] / target / moxie / Makefile
blob3d8f8d42b8cb73e432796f7cae0f45baa0db2e08
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 endif
29 ifeq ($(ADK_TARGET_FS),nfsroot)
30 targethelp:
31 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
32 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
33 endif
35 kernel-strip:
36 @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
38 kernel-install: kernel-strip
39 @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
41 # filesystem specific targets
42 ifeq ($(ADK_TARGET_FS),archive)
43 imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
44 endif
45 ifeq ($(ADK_TARGET_FS),initramfs)
46 imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
47 endif
48 ifeq ($(ADK_TARGET_FS),initramfsarchive)
49 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
50 endif
51 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
52 imageinstall: createinitramfs targethelp
53 endif
54 ifeq ($(ADK_TARGET_FS),nfsroot)
55 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
56 endif