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
12 ifeq ($(ADK_TARGET_FS
),initramfs
)
14 @echo
'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
15 @echo
'The initramfs image is: ${FW_DIR}/${INITRAMFS}'
17 ifeq ($(ADK_TARGET_FS
),initramfsarchive
)
19 @echo
'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
20 @echo
"The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)"
22 ifeq ($(ADK_TARGET_FS
),initramfspiggyback
)
24 @echo
'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}'
25 ifeq ($(ADK_TARGET_SIM
),y
)
26 @echo
"Run the simulator via:"
27 @echo
'$(TARGET_CROSS)gdb $(FW_DIR)/$(TARGET_KERNEL)'
28 @echo
'gdb> target sim'
29 @echo
'gdb> sim intmode 1'
30 @echo
'gdb> sim sci net 12345'
32 @echo
'start telnet localhost 12345 in a second shell'
33 @echo
'gdb> run earlyprintk=h8300-sim console=ttySC0'
38 $(TARGET_CROSS
)objcopy
$(OSTRIP
) -S
$(KERNEL
) $(BUILD_DIR
)/$(TARGET_KERNEL
)
40 kernel-install
: kernel-strip
41 @cp
$(BUILD_DIR
)/$(TARGET_KERNEL
) $(FW_DIR
)/$(TARGET_KERNEL
)
43 # filesystem specific targets
44 ifeq ($(ADK_TARGET_FS
),initramfs
)
45 imageinstall
: kernel-install
$(FW_DIR
)/$(INITRAMFS
) targethelp
47 ifeq ($(ADK_TARGET_FS
),initramfsarchive
)
48 imageinstall
: kernel-install
$(FW_DIR
)/$(ROOTFSUSERTARBALL
) targethelp
50 ifeq ($(ADK_TARGET_FS
),initramfspiggyback
)
51 imageinstall
: createinitramfs targethelp