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 $(TOPDIR
)/rules.mk
5 include $(TOPDIR
)/mk
/kernel.mk
6 include $(TOPDIR
)/mk
/modules.mk
7 include $(TOPDIR
)/mk
/kernel-build.mk
8 include $(TOPDIR
)/mk
/image.mk
11 @cp
$(LINUX_DIR
)/arch
/arm
/boot
/zImage
$(BIN_DIR
)/${ADK_TARGET}-${FS}-kernel
14 @
-rm $(LINUX_DIR
)/usr
/initramfs_data.cpio.
*
15 $(SED
) 's#^CONFIG_INITRAMFS_SOURCE.*#CONFIG_INITRAMFS_SOURCE="${BUILD_DIR}/${INITRAMFS_PIGGYBACK}"#' $(LINUX_DIR
)/.config
16 echo
'CONFIG_INITRAMFS_ROOT_UID=0' >> $(LINUX_DIR
)/.config
17 echo
'CONFIG_INITRAMFS_ROOT_GID=0' >> $(LINUX_DIR
)/.config
18 echo N |
$(MAKE
) -C
$(LINUX_DIR
) V
=0 CROSS_COMPILE
="$(TARGET_CROSS)" ARCH
=$(ARCH
) \
19 CC
="$(TARGET_CC)" oldconfig
$(MAKE_TRACE
)
20 $(MAKE
) -C
$(LINUX_DIR
) V
=1 CROSS_COMPILE
="$(TARGET_CROSS)" ARCH
=$(ARCH
) \
21 CC
="$(TARGET_CC)" $(MAKE_TRACE
)
22 $(CP
) $(LINUX_DIR
)/arch
/arm
/boot
/zImage \
23 $(BIN_DIR
)/${ADK_TARGET}-${FS}-kernel
26 imageinstall
: $(BIN_DIR
)/$(ROOTFSTARBALL
)
28 @echo
"The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL),"
29 @echo
'Login as user root with password linux123 via ssh or console'
31 ifeq ($(FS
),initramfs
)
32 imageinstall
: $(BIN_DIR
)/$(INITRAMFS
)
33 @echo
'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
34 @echo
'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
35 @echo
'qemu-system-arm -M spitz -portrait -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel -initrd ${BIN_DIR}/${INITRAMFS}'
36 @echo
'Login as user root with password linux123 via ssh or console'
39 ifeq ($(FS
),initramfs-piggyback
)
40 imageinstall
: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinit
41 @echo
'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
42 @echo
'Login as user root with password linux123 via ssh or console'