beaglebone-black: works with omap2plus_defconfig and upstream kernel
[openadk.git] / target / avr32 / Makefile
blob75ec3679a9036eb7d291b029d25b8f3d1b84f501
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)/arch/avr32/boot/images/uImage
10 # target helper text
11 ifeq ($(ADK_TARGET_FS),archive)
12 targethelp:
13 @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSTARBALL)"
14 @echo "Use following command to install it on SD card:"
15 @echo "sudo ./scripts/install.sh $(ADK_TARGET_SYSTEM) /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)"
16 @echo "U-Boot commands:"
17 @echo "set bootargs 'console=ttyS0 root=/dev/mmcblk0p1 ro rootwait'"
18 @echo "ext2load mmc 0:1 0x10300000 /boot/kernel; bootm 0x10300000"
19 endif
20 ifeq ($(ADK_TARGET_FS),nfsroot)
21 targethelp:
22 @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}'
23 @echo 'The nfs root tarball is: ${FW_DIR}/${ROOTFSUSERTARBALL}'
24 endif
26 kernel-strip:
27 cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
29 kernel-install: kernel-strip
30 cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
32 # filesystem specific targets
33 ifeq ($(ADK_TARGET_FS),archive)
34 imageinstall: $(FW_DIR)/$(ROOTFSTARBALL) targethelp
35 endif
36 ifeq ($(ADK_TARGET_FS),nfsroot)
37 imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
38 endif