diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-08 02:52:30 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-11-13 20:55:22 +0100 |
commit | 4d589e31e932cc09a36a2ce9b5927ba21ee467fd (patch) | |
tree | 0710caf590d36d26cf725d5649dbf5b94c1c4751 /target/x86/Makefile | |
parent | 7dacac37a697f63d45b0d23071a0861582138d1d (diff) |
grub: rework package, add mips support, update to latest git
Diffstat (limited to 'target/x86/Makefile')
-rw-r--r-- | target/x86/Makefile | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/target/x86/Makefile b/target/x86/Makefile index ba1961bca..3ff21095a 100644 --- a/target/x86/Makefile +++ b/target/x86/Makefile @@ -12,6 +12,10 @@ QEMU_ARGS:=-M pc QEMU_ARGS+=${ADK_QEMU_ARGS} QEMU_ARGS+=-net user -net nic,model=e1000 +ifeq ($(ADK_PACKAGE_GRUB_EFI_X86),y) +QEMU_ARGS+=-L . -bios bios-x86.bin +endif + ifeq ($(ADK_TARGET_QEMU_WITH_AUDIO),y) QEMU_ARGS+=-soundhw ac97 endif @@ -33,7 +37,7 @@ targethelp: ifeq ($(ADK_TARGET_QEMU),y) @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' @echo "Use following command to create a QEMU Image:" - @echo "./scripts/create.sh qemu-${ADK_TARGET_CPU_ARCH}.img $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "$(CREATE) qemu-${ADK_TARGET_CPU_ARCH}.img $(FW_DIR)/$(ROOTFSTARBALL)" @echo "Start qemu with following options:" ifeq ($(ADK_TARGET_QEMU_WITH_BOOTLOADER),y) @echo 'qemu-system-${QEMU_ARCH} ${QEMU_ARGS} qemu-${ADK_TARGET_CPU_ARCH}.img' @@ -83,6 +87,16 @@ ifeq ($(ADK_TARGET_FS),iso) targethelp: @echo 'ISO image is at $<' endif +ifeq ($(ADK_TARGET_FS),genimage) +targethelp: + @echo "The disk image is: $(FW_DIR)/disk.img" + @echo "Use following command to install it on SD card:" +ifeq ($(ADK_TARGET_QEMU),y) + @echo 'qemu-system-${QEMU_ARCH} ${QEMU_ARGS} $(FW_DIR)/disk.img' +else + @echo 'sudo dd if=$(FW_DIR)/disk.img of=/dev/sdX bs=2048k' +endif +endif # image creation and kernel install kernel-strip: @@ -104,6 +118,9 @@ endif ifeq ($(ADK_TARGET_FS),initramfspiggyback) imageinstall: createinitramfs targethelp endif +ifeq (${ADK_TARGET_FS},genimage) +imageinstall: ${FW_DIR}/${GENIMAGE} targethelp +endif ifeq (${ADK_TARGET_FS},iso) imageinstall: ${FW_DIR}/${ROOTFSISO} targethelp endif |