-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add libcap and gnu-efi. This is required for building `sd-stub` and `sd-boot`. Signed-off-by: Noel Georgi <[email protected]>
- Loading branch information
Showing
6 changed files
with
83 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# https://git.alpinelinux.org/aports/tree/main/gnu-efi/no-werror.patch | ||
diff --git a/Make.defaults b/Make.defaults | ||
index ba743f1..5fd1b66 100755 | ||
--- a/Make.defaults | ||
+++ b/Make.defaults | ||
@@ -170,7 +170,7 @@ CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \ | ||
-fshort-wchar -fno-strict-aliasing \ | ||
-ffreestanding -fno-stack-protector | ||
else | ||
-CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \ | ||
+CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra \ | ||
-fshort-wchar -fno-strict-aliasing \ | ||
-ffreestanding -fno-stack-protector -fno-stack-check \ | ||
-fno-stack-check \ | ||
|
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,31 @@ | ||
name: gnuefi | ||
dependencies: | ||
- stage: base | ||
- stage: patch | ||
runtime: true | ||
steps: | ||
- sources: | ||
- url: https://src.fedoraproject.org/lookaside/extras/gnu-efi/gnu-efi-{{ .gnuefi_version }}.tar.bz2/sha512/64d408b6d115bdc6eebae12fbd6cd907ed5f847f54e506c1e8f8ea5de38a95cf6fac66ab1009bd1d0bd2d54ad45ad598d29bcc303926a5899bf5cc25448cbb2f/gnu-efi-{{ .gnuefi_version }}.tar.bz2 | ||
destination: gnuefi.tar.bz2 | ||
sha256: "{{ .gnuefi_sha256 }}" | ||
sha512: "{{ .gnuefi_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xf gnuefi.tar.bz2 --strip-components=1 | ||
patch -p1 < /pkg/patches/no-werror.patch | ||
build: | ||
- | | ||
make -j $(nproc) -C lib | ||
make -j $(nproc) -C gnuefi | ||
make -j $(nproc) -C inc | ||
install: | ||
- | | ||
mkdir -p /rootfs | ||
make -j $(nproc ) -C lib PREFIX=${TOOLCHAIN} INSTALLROOT=/rootfs install | ||
make -j $(nproc ) -C gnuefi PREFIX=${TOOLCHAIN} INSTALLROOT=/rootfs install | ||
make -j $(nproc ) -C inc PREFIX=${TOOLCHAIN} INSTALLROOT=/rootfs install | ||
finalize: | ||
- from: /rootfs | ||
to: / |
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 @@ | ||
name: libcap | ||
dependencies: | ||
- stage: base | ||
steps: | ||
- sources: | ||
- url: https://kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-{{ .libcap_version }}.tar.xz | ||
destination: libcap.tar.xz | ||
sha256: "{{ .libcap_sha256 }}" | ||
sha512: "{{ .libcap_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xf libcap.tar.xz --strip-components=1 | ||
build: | ||
- | | ||
make prefix=${TOOLCHAIN} lib=lib -j $(nproc) | ||
install: | ||
- | | ||
make DESTDIR=/rootfs prefix=${TOOLCHAIN} lib=lib install | ||
rm -rf /rootfs/${TOOLCHAIN}/share | ||
finalize: | ||
- from: /rootfs | ||
to: / |
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