forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable generate EFI+GPT grub2 ext4 images for x86/x64 platforms
- Loading branch information
1 parent
521ca2d
commit c682eba
Showing
10 changed files
with
320 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
include $(TOPDIR)/rules.mk | ||
include $(INCLUDE_DIR)/kernel.mk | ||
|
||
PKG_NAME:=grub-efi | ||
|
||
include ../common.mk | ||
|
||
TAR_OPTIONS:= --transform 's/grub-${PKG_VERSION}/${PKG_NAME}-${PKG_VERSION}/' $(TAR_OPTIONS) | ||
|
||
PKG_BUILD_DEPENDS:=grub2-efi/host | ||
|
||
CONFIGURE_ARGS += --with-platform=efi | ||
HOST_CONFIGURE_ARGS += --with-platform=efi --program-suffix=-efi | ||
|
||
define Package/grub2-efi | ||
$(call Package/grub2/Default) | ||
HIDDEN:=1 | ||
TITLE += (with EFI support) | ||
endef | ||
|
||
$(eval $(call HostBuild)) | ||
$(eval $(call BuildPackage,grub2-efi)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
include $(TOPDIR)/rules.mk | ||
include $(INCLUDE_DIR)/kernel.mk | ||
|
||
PKG_NAME:=grub | ||
|
||
include ../common.mk | ||
|
||
PKG_BUILD_DEPENDS:=grub2/host | ||
|
||
define Package/grub2 | ||
$(call Package/grub2/Default) | ||
endef | ||
|
||
define Package/grub2-editenv | ||
CATEGORY:=Utilities | ||
SECTION:=utils | ||
TITLE:=Grub2 Environment editor | ||
URL:=http://www.gnu.org/software/grub/ | ||
DEPENDS:=@TARGET_x86||TARGET_x86_64 | ||
endef | ||
|
||
define Package/grub2-editenv/description | ||
Edit grub2 environment files. | ||
endef | ||
|
||
define Package/grub2-editenv/install | ||
$(INSTALL_DIR) $(1)/usr/sbin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/grub-editenv $(1)/usr/sbin/ | ||
endef | ||
|
||
$(eval $(call HostBuild)) | ||
$(eval $(call BuildPackage,grub2)) | ||
$(eval $(call BuildPackage,grub2-editenv)) |
Oops, something went wrong.