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
10 KERNEL
:=$(LINUX_DIR
)/arch
/x86
/boot
/bzImage
13 @cp
$(KERNEL
) $(BIN_DIR
)/${ADK_TARGET}-${FS}-kernel
16 imageinstall
: $(BIN_DIR
)/$(ROOTFSTARBALL
)
17 @echo
"The RootFS tarball is: $(BIN_DIR)/$(ROOTFSTARBALL),"
18 @echo
"Use following command to create a QEMU Image:"
19 @echo
"sudo ./scripts/create-image.sh -f ${ADK_TARGET_ROOTFS} qemu-${CPU_ARCH}.img $(BIN_DIR)/$(ROOTFSTARBALL)"
20 @echo
"Start qemu with following command line:"
21 @echo
'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel qemu-${CPU_ARCH}.img'
22 @echo
'Login as user root with password linux123 via ssh or console'
25 ifeq ($(FS
),initramfs
)
26 imageinstall
: $(BIN_DIR
)/$(INITRAMFS
)
27 @echo
'The kernel file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
28 @echo
'The initramfs image is: ${BIN_DIR}/${INITRAMFS}'
29 @echo
"Start qemu with following command line:"
30 @echo
'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel -initrd ${BIN_DIR}/${INITRAMFS}'
31 @echo
'Login as user root with password linux123 via ssh or console'
34 ifeq ($(FS
),initramfs-piggyback
)
35 imageinstall
: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinitramfs
36 @cp
$(KERNEL
) ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel
37 @echo
'The kernel+initramfs file is: ${BIN_DIR}/${ADK_TARGET}-${FS}-kernel'
38 @echo
"Start qemu with following command line:"
39 @echo
'qemu -nographic -net user,hostfwd=tcp::2222-:22 -net nic,model=e1000 -kernel $(BIN_DIR)/${ADK_TARGET}-${FS}-kernel'
40 @echo
'Login as user root with password linux123 via ssh or console'