build: remove leftovers from previous x86 commits
VBoxManage is not used and the image is created with proper permisions:0f5d0f6image: use internal qemu-img for vmdk and vdi images drop host dependencies on qemu-utils and VirtualBox Unreachable config symbols:9e0759ex86: merge all geode based subtargets into one No need to define those symbols since x86_64 is subtarget of x86:196fb76x86: make x86_64 a subtarget instead of a standalone target Unreachable config symbols, so remove GRUB_ROOT:371b382x86: remove the xen_domu subtarget Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
This commit is contained in:
		 Tomasz Maciej Nowak
					Tomasz Maciej Nowak
				
			
				
					committed by
					
						 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
			
				
	
			
			
			 Hauke Mehrtens
						Hauke Mehrtens
					
				
			
						parent
						
							da50f027f0
						
					
				
				
					commit
					bb0e4f9fb0
				
			| @@ -197,14 +197,12 @@ menu "Target Images" | |||||||
| 	config GRUB_CONSOLE | 	config GRUB_CONSOLE | ||||||
| 		bool "Use Console Terminal (in addition to Serial)" | 		bool "Use Console Terminal (in addition to Serial)" | ||||||
| 		depends on GRUB_IMAGES | 		depends on GRUB_IMAGES | ||||||
| 		default n if (TARGET_x86_generic_Soekris45xx || TARGET_x86_generic_Soekris48xx || TARGET_x86_net5501 || TARGET_x86_geos || TARGET_x86_alix2) |  | ||||||
| 		default y | 		default y | ||||||
|  |  | ||||||
| 	config GRUB_SERIAL | 	config GRUB_SERIAL | ||||||
| 		string "Serial port device" | 		string "Serial port device" | ||||||
| 		depends on GRUB_IMAGES | 		depends on GRUB_IMAGES | ||||||
| 		default "hvc0" if TARGET_x86_xen_domu | 		default "ttyS0" | ||||||
| 		default "ttyS0" if ! TARGET_x86_xen_domu |  | ||||||
|  |  | ||||||
| 	config GRUB_BAUDRATE | 	config GRUB_BAUDRATE | ||||||
| 		int "Serial port baud rate" | 		int "Serial port baud rate" | ||||||
| @@ -220,7 +218,6 @@ menu "Target Images" | |||||||
| 	config GRUB_BOOTOPTS | 	config GRUB_BOOTOPTS | ||||||
| 		string "Extra kernel boot options" | 		string "Extra kernel boot options" | ||||||
| 		depends on GRUB_IMAGES | 		depends on GRUB_IMAGES | ||||||
| 		default "xencons=hvc" if TARGET_x86_xen_domu |  | ||||||
| 		help | 		help | ||||||
| 		  If you don't know, just leave it blank. | 		  If you don't know, just leave it blank. | ||||||
|  |  | ||||||
| @@ -241,14 +238,14 @@ menu "Target Images" | |||||||
|  |  | ||||||
| 	config VDI_IMAGES | 	config VDI_IMAGES | ||||||
| 		bool "Build VirtualBox image files (VDI)" | 		bool "Build VirtualBox image files (VDI)" | ||||||
| 		depends on TARGET_x86 || TARGET_x86_64 | 		depends on TARGET_x86 | ||||||
| 		select GRUB_IMAGES | 		select GRUB_IMAGES | ||||||
| 		select TARGET_IMAGES_PAD | 		select TARGET_IMAGES_PAD | ||||||
| 		select PACKAGE_kmod-e1000 | 		select PACKAGE_kmod-e1000 | ||||||
|  |  | ||||||
| 	config VMDK_IMAGES | 	config VMDK_IMAGES | ||||||
| 		bool "Build VMware image files (VMDK)" | 		bool "Build VMware image files (VMDK)" | ||||||
| 		depends on TARGET_x86 || TARGET_x86_64 | 		depends on TARGET_x86 | ||||||
| 		select GRUB_IMAGES | 		select GRUB_IMAGES | ||||||
| 		select TARGET_IMAGES_PAD | 		select TARGET_IMAGES_PAD | ||||||
| 		select PACKAGE_kmod-e1000 | 		select PACKAGE_kmod-e1000 | ||||||
|   | |||||||
| @@ -33,7 +33,7 @@ define Package/grub2 | |||||||
|   SECTION:=boot |   SECTION:=boot | ||||||
|   TITLE:=GRand Unified Bootloader |   TITLE:=GRand Unified Bootloader | ||||||
|   URL:=http://www.gnu.org/software/grub/ |   URL:=http://www.gnu.org/software/grub/ | ||||||
|   DEPENDS:=@TARGET_x86||TARGET_x86_64 |   DEPENDS:=@TARGET_x86 | ||||||
| endef | endef | ||||||
|  |  | ||||||
| define Package/grub2-editenv | define Package/grub2-editenv | ||||||
| @@ -42,7 +42,7 @@ define Package/grub2-editenv | |||||||
|   SUBMENU:=Boot Loaders |   SUBMENU:=Boot Loaders | ||||||
|   TITLE:=Grub2 Environment editor |   TITLE:=Grub2 Environment editor | ||||||
|   URL:=http://www.gnu.org/software/grub/ |   URL:=http://www.gnu.org/software/grub/ | ||||||
|   DEPENDS:=@TARGET_x86||TARGET_x86_64 |   DEPENDS:=@TARGET_x86 | ||||||
| endef | endef | ||||||
|  |  | ||||||
| define Package/grub2-editenv/description | define Package/grub2-editenv/description | ||||||
|   | |||||||
| @@ -15,7 +15,6 @@ GRUB_TERMINALS = | |||||||
| GRUB_SERIAL_CONFIG = | GRUB_SERIAL_CONFIG = | ||||||
| GRUB_TERMINAL_CONFIG = | GRUB_TERMINAL_CONFIG = | ||||||
| GRUB_CONSOLE_CMDLINE = | GRUB_CONSOLE_CMDLINE = | ||||||
| GRUB_ROOT = hd0,msdos1 |  | ||||||
|  |  | ||||||
| USE_ATKBD = generic 64 | USE_ATKBD = generic 64 | ||||||
|  |  | ||||||
| @@ -48,10 +47,6 @@ ROOTPART:=$(if $(ROOTPART),$(ROOTPART),PARTUUID=$(SIGNATURE)-02) | |||||||
| GRUB_TIMEOUT:=$(call qstrip,$(CONFIG_GRUB_TIMEOUT)) | GRUB_TIMEOUT:=$(call qstrip,$(CONFIG_GRUB_TIMEOUT)) | ||||||
| GRUB_TITLE:=$(call qstrip,$(CONFIG_GRUB_TITLE)) | GRUB_TITLE:=$(call qstrip,$(CONFIG_GRUB_TITLE)) | ||||||
|  |  | ||||||
| ifneq ($(CONFIG_TARGET_x86_xen_domu),) |  | ||||||
|   GRUB_ROOT = xen/xvda,msdos1 |  | ||||||
| endif |  | ||||||
|  |  | ||||||
| ifneq ($(CONFIG_GRUB_IMAGES),) | ifneq ($(CONFIG_GRUB_IMAGES),) | ||||||
|  |  | ||||||
|   BOOTOPTS:=$(call qstrip,$(CONFIG_GRUB_BOOTOPTS)) |   BOOTOPTS:=$(call qstrip,$(CONFIG_GRUB_BOOTOPTS)) | ||||||
| @@ -82,7 +77,6 @@ ifneq ($(CONFIG_GRUB_IMAGES),) | |||||||
| 		-e 's#@TERMINAL_CONFIG@#$(strip $(GRUB_TERMINAL_CONFIG))#g' \ | 		-e 's#@TERMINAL_CONFIG@#$(strip $(GRUB_TERMINAL_CONFIG))#g' \ | ||||||
| 		-e 's#@CMDLINE@#$(strip $(call Image/cmdline/$(1)) $(BOOTOPTS) $(GRUB_CONSOLE_CMDLINE))#g' \ | 		-e 's#@CMDLINE@#$(strip $(call Image/cmdline/$(1)) $(BOOTOPTS) $(GRUB_CONSOLE_CMDLINE))#g' \ | ||||||
| 		-e 's#@TIMEOUT@#$(GRUB_TIMEOUT)#g' \ | 		-e 's#@TIMEOUT@#$(GRUB_TIMEOUT)#g' \ | ||||||
| 		-e 's#@ROOT@#$(GRUB_ROOT)#g' \ |  | ||||||
| 		-e 's#@TITLE@#$(GRUB_TITLE)#g' \ | 		-e 's#@TITLE@#$(GRUB_TITLE)#g' \ | ||||||
| 		./grub.cfg > $(KDIR)/root.grub/boot/grub/grub.cfg | 		./grub.cfg > $(KDIR)/root.grub/boot/grub/grub.cfg | ||||||
| 	-$(CP) $(STAGING_DIR_ROOT)/boot/. $(KDIR)/root.grub/boot/ | 	-$(CP) $(STAGING_DIR_ROOT)/boot/. $(KDIR)/root.grub/boot/ | ||||||
| @@ -135,8 +129,6 @@ ifneq ($(CONFIG_VDI_IMAGES),) | |||||||
| 	qemu-img convert -f raw -O vdi \ | 	qemu-img convert -f raw -O vdi \ | ||||||
| 		$(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).img \ | 		$(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).img \ | ||||||
| 		$(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).vdi | 		$(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).vdi | ||||||
| 	# XXX: VBoxManage insists on setting perms to 0600 |  | ||||||
| 	chmod 0644 $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).vdi |  | ||||||
|   endef |   endef | ||||||
| endif | endif | ||||||
|  |  | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|  |  | ||||||
| set default="0" | set default="0" | ||||||
| set timeout="@TIMEOUT@" | set timeout="@TIMEOUT@" | ||||||
| set root='(@ROOT@)' | set root='(hd0,msdos1)' | ||||||
|  |  | ||||||
| menuentry "@TITLE@" { | menuentry "@TITLE@" { | ||||||
| 	linux /boot/vmlinuz @CMDLINE@ noinitrd | 	linux /boot/vmlinuz @CMDLINE@ noinitrd | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user