Kaynağa Gözat

uefi boot dislikes size in genimage, use a dummy image for cfgfs, add dependencies

Waldemar Brodkorb 8 yıl önce
ebeveyn
işleme
57a963f2bb

+ 1 - 0
mk/image.mk

@@ -274,6 +274,7 @@ ${FW_DIR}/${ROOTFSISO}: ${TARGET_DIR} kernel-package
 ${FW_DIR}/${GENIMAGE}: ${TARGET_DIR} kernel-package
 	@rm -rf ${FW_DIR}/temp
 	@mkdir -p ${FW_DIR}/temp
+	@dd if=/dev/zero of=${FW_DIR}/cfgfs.img bs=16M count=1 $(MAKE_TRACE)
 	PATH='${HOST_PATH}' mke2img \
 		-G 4 \
 		-d "$(TARGET_DIR)" \

+ 1 - 0
package/util-linux/Makefile

@@ -10,6 +10,7 @@ PKG_HASH:=		b89d37146f20bede93a42c847bce881a17e6dbd8066ff2db2bee733fa409f0cd
 PKG_DESCR:=		basic utilities
 PKG_SECTION:=		base/apps
 PKG_BUILDDEP:=		ncurses
+HOST_BUILDDEP:=		autoconf-host automake-host libtool-host pkgconf-host
 PKG_SITES:=		http://www.kernel.org/pub/linux/utils/util-linux/v2.28/
 PKG_OPTS:=		dev
 PKG_NEEDS:=		threads rt

+ 5 - 0
target/x86_64/qemu-x86_64/genimage.cfg

@@ -22,4 +22,9 @@ image disk.img {
     image = "rootfs.ext"
   }
 
+  partition cfgfs {
+    partition-type = 0x88
+    image = "cfgfs.img"
+  }
+
 }