mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 05:13:19 +02:00
change x86 image generation handling to treat only olpc specially
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18441 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
1c6be5e8b9
commit
e71fb302b1
@ -1,6 +1,6 @@
|
|||||||
config X86_GRUB_IMAGES
|
config X86_GRUB_IMAGES
|
||||||
bool "Build GRUB images (Linux x86 or x86_64 host only)"
|
bool "Build GRUB images (Linux x86 or x86_64 host only)"
|
||||||
depends TARGET_x86_generic
|
depends !TARGET_x86_olpc
|
||||||
depends TARGET_ROOTFS_EXT2FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS || TARGET_ROOTFS_ISO
|
depends TARGET_ROOTFS_EXT2FS || TARGET_ROOTFS_JFFS2 || TARGET_ROOTFS_SQUASHFS || TARGET_ROOTFS_ISO
|
||||||
select PACKAGE_grub
|
select PACKAGE_grub
|
||||||
default y
|
default y
|
||||||
|
@ -9,7 +9,7 @@ include $(INCLUDE_DIR)/image.mk
|
|||||||
|
|
||||||
export PATH=$(TARGET_PATH):/sbin
|
export PATH=$(TARGET_PATH):/sbin
|
||||||
|
|
||||||
ifeq ($(CONFIG_TARGET_x86_generic),y)
|
ifneq ($(CONFIG_TARGET_x86_olpc),y)
|
||||||
BOOTOPTS=$(strip $(subst ",, $(CONFIG_X86_GRUB_BOOTOPTS)))
|
BOOTOPTS=$(strip $(subst ",, $(CONFIG_X86_GRUB_BOOTOPTS)))
|
||||||
ROOTPART=$(strip $(subst ",, $(CONFIG_X86_GRUB_ROOTPART)))
|
ROOTPART=$(strip $(subst ",, $(CONFIG_X86_GRUB_ROOTPART)))
|
||||||
#"))")) # fix vim's broken syntax highlighting
|
#"))")) # fix vim's broken syntax highlighting
|
||||||
@ -120,14 +120,13 @@ endif
|
|||||||
|
|
||||||
define Image/Prepare
|
define Image/Prepare
|
||||||
$(CP) $(LINUX_DIR)/arch/x86/boot/bzImage $(KDIR)/bzImage
|
$(CP) $(LINUX_DIR)/arch/x86/boot/bzImage $(KDIR)/bzImage
|
||||||
ifeq ($(CONFIG_TARGET_x86_generic),y)
|
|
||||||
$(call Image/Prepare/grub)
|
|
||||||
endif
|
|
||||||
ifeq ($(CONFIG_TARGET_x86_olpc),y)
|
ifeq ($(CONFIG_TARGET_x86_olpc),y)
|
||||||
$(call Image/Prepare/bootscript)
|
$(call Image/Prepare/bootscript)
|
||||||
|
else
|
||||||
|
$(call Image/Prepare/grub)
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
|
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user