From 923fce05a0243d71655449f07efc1c348f791b6d Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 11 Apr 2014 19:11:27 +0200 Subject: create core.img on the fly via qemu user emulation --- package/grub/Makefile | 12 ++++++------ package/grub/files/core.img.i386-pc | Bin 26238 -> 0 bytes 2 files changed, 6 insertions(+), 6 deletions(-) delete mode 100644 package/grub/files/core.img.i386-pc diff --git a/package/grub/Makefile b/package/grub/Makefile index f634e07df..2f2deba4a 100644 --- a/package/grub/Makefile +++ b/package/grub/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= grub PKG_VERSION:= 2.00 -PKG_RELEASE:= 3 +PKG_RELEASE:= 4 PKG_MD5SUM:= e927540b6eda8b024fb0391eeaa4091c PKG_DESCR:= GRUB2 bootloader (source package) PKG_SECTION:= boot @@ -24,6 +24,8 @@ include $(TOPDIR)/mk/package.mk $(eval $(call PKG_template,GRUB,grub,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +GRUB_MODULES:= ext2 part_msdos biosdisk + ifeq ($(ADK_PACKAGE_GRUB_PC),y) GRUB_ARCH:= i386-pc CONFIGURE_ARGS+= --with-platform=pc @@ -33,11 +35,8 @@ GRUB_ARCH:= x86_64-efi CONFIGURE_ARGS+= --with-platform=efi endif -ifeq ($(ADK_STATIC),y) TARGET_CFLAGS+= -static TARGET_LDFLAGS+= -static -endif - CONFIGURE_ARGS+= --disable-grub-mkfont \ --enable-efiemu=no \ --enable-liblzma=no \ @@ -50,7 +49,8 @@ grub-install: ${INSTALL_DIR} $(IDIR_GRUB)/boot/grub/${GRUB_ARCH} ${CP} ${WRKINST}/usr/lib/grub/${GRUB_ARCH}/*{mod,lst,img} \ $(IDIR_GRUB)/boot/grub/${GRUB_ARCH}/ - ${CP} ./files/core.img.${GRUB_ARCH} \ - $(IDIR_GRUB)/boot/grub/core.img + PATH='${HOST_PATH}' qemu-i386 ${WRKBUILD}/grub-mkimage \ + -o $(IDIR_GRUB)/boot/grub/core.img -O ${GRUB_ARCH} \ + -c ./files/embed.cfg ${GRUB_MODULES} include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/grub/files/core.img.i386-pc b/package/grub/files/core.img.i386-pc deleted file mode 100644 index fbfb875ee..000000000 Binary files a/package/grub/files/core.img.i386-pc and /dev/null differ -- cgit v1.2.3