x86: backport grub2 at_keyboard handling from r34126 and r34127
authorFelix Fietkau <nbd@openwrt.org>
Fri, 9 Nov 2012 11:16:53 +0000 (11:16 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 9 Nov 2012 11:16:53 +0000 (11:16 +0000)
SVN-Revision: 34128

target/linux/x86/image/Makefile

index 547f0839fdfe1a5f5fc0669cc626e41940006f70..13da511ed438f7ac4fdebbf8ffc0b04e5091cf78 100644 (file)
@@ -9,7 +9,7 @@ include $(INCLUDE_DIR)/image.mk
 
 export PATH=$(TARGET_PATH):/sbin
 
-GRUB2_MODULES = at_keyboard biosdisk boot chain configfile ext2 linux ls part_msdos reboot serial vga
+GRUB2_MODULES = biosdisk boot chain configfile ext2 linux ls part_msdos reboot serial vga
 GRUB_TERMINALS =
 GRUB_SERIAL_CONFIG =
 GRUB_TERMINAL_CONFIG =
@@ -20,6 +20,12 @@ ifneq ($(CONFIG_X86_GRUB_CONSOLE),)
   GRUB_TERMINALS += console
 endif
 
+USE_ATKBD = generic kvm_guest
+
+ifneq ($(strip $(foreach subtarget,$(USE_ATKBD),$(CONFIG_TARGET_x86_$(subtarget)))),)
+  GRUB2_MODULES += at_keyboard
+endif
+
 ifneq ($(CONFIG_X86_GRUB_SERIAL),)
   GRUB_CONSOLE_CMDLINE += console=$(call qstrip,$(CONFIG_X86_GRUB_SERIAL)),$(CONFIG_X86_GRUB_BAUDRATE)n8
   GRUB_SERIAL_CONFIG := serial --unit=0 --speed=$(CONFIG_X86_GRUB_BAUDRATE) --word=8 --parity=no --stop=1