linux+arc: update kernel
[openadk.git] / target / hppa / Makefile
blobaba746bee2b80ac617ec4c53754025517f62f015
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 QEMU:=qemu-system-hppa
10 QEMU_ARGS:=-nographic
12 # target helper text
13 ifeq ($(ADK_TARGET_FS),archive)
14 targethelp:
15 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
16 endif
17 ifeq ($(ADK_TARGET_FS),initramfs)
18 targethelp:
19 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
20 @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
21 ifeq ($(ADK_TARGET_QEMU),y)
22 @echo "Start qemu with following command line:"
23 @echo '$(QEMU) $(QEMU_ARGS) -kernel $(FW_DIR)/$(TARGET_KERNEL) -initrd ${FW_DIR}/${INITRAMFS}'
24 endif
25 endif
26 ifeq ($(ADK_TARGET_FS),initramfsarchive)
27 targethelp:
28 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
29 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
30 endif
31 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
32 targethelp:
33 @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
34 ifeq ($(ADK_TARGET_QEMU),y)
35 @echo "Start qemu with following command line:"
36 @echo '$(QEMU) $(QEMU_ARGS) -kernel $(FW_DIR)/$(TARGET_KERNEL)'
37 endif
38 endif
39 ifeq ($(ADK_TARGET_FS),nfsroot)
40 targethelp:
41 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
42 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
43 endif
45 kernel-strip:
46 @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
48 kernel-install: kernel-strip
49 @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
51 # filesystem specific targets
52 ifeq ($(ADK_TARGET_FS),archive)
53 imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
54 endif
55 ifeq ($(ADK_TARGET_FS),initramfs)
56 imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp
57 endif
58 ifeq ($(ADK_TARGET_FS),initramfsarchive)
59 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
60 endif
61 ifeq ($(ADK_TARGET_FS),initramfspiggyback)
62 imageinstall: createinitramfs targethelp
63 endif
64 ifeq ($(ADK_TARGET_FS),nfsroot)
65 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
66 endif