summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-08 02:52:30 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-11-13 20:55:22 +0100
commit4d589e31e932cc09a36a2ce9b5927ba21ee467fd (patch)
tree0710caf590d36d26cf725d5649dbf5b94c1c4751 /mk
parent7dacac37a697f63d45b0d23071a0861582138d1d (diff)
grub: rework package, add mips support, update to latest git
Diffstat (limited to 'mk')
-rw-r--r--mk/image.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/image.mk b/mk/image.mk
index f2f00e650..b880e48af 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -299,11 +299,16 @@ endif
-d "$(TARGET_DIR)" \
-o $(FW_DIR)/rootfs.ext $(MAKE_TRACE)
PATH='${HOST_PATH}' genimage \
- --config "$(ADK_TOPDIR)/target/$(ADK_TARGET_CPU_ARCH)/$(ADK_TARGET_SYSTEM)/genimage.cfg" \
+ --config "$(ADK_TOPDIR)/target/$(ADK_TARGET_ARCH)/$(ADK_TARGET_SYSTEM)/genimage.cfg" \
--tmppath "${FW_DIR}/temp" \
--rootpath "$(TARGET_DIR)" \
--inputpath "$(FW_DIR)" \
--outputpath "$(FW_DIR)" $(MAKE_TRACE)
+ifeq ($(ADK_PACKAGE_GRUB_EFI_X86)$(ADK_PACKAGE_GRUB_EFI_X86_64),y)
+ @if [ ! -f $(ADK_TOPDIR)/bios-$(ADK_TARGET_ARCH).bin ]; then \
+ cd $(ADK_TOPDIR); wget http://distfiles.openadk.org/bios-$(ADK_TARGET_ARCH).bin ;\
+ fi
+endif
imageclean:
rm -f $(FW_DIR)/$(ADK_TARGET_SYSTEM)-* ${BUILD_DIR}/$(ADK_TARGET_SYSTEM)-*