diff options
author | Mike Gilbert <floppym@gentoo.org> | 2022-05-30 21:30:30 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2022-05-30 21:42:08 -0400 |
commit | cbb67e0be81716c147d845cec44e59be689b2ac2 (patch) | |
tree | 176de1a141ca5fd0ebe6836ff76e948d62460e02 /sys-boot/syslinux | |
parent | dev-util/buildbot-worker: Move msgpack dep to RDEPEND (diff) | |
download | gentoo-cbb67e0be81716c147d845cec44e59be689b2ac2.tar.gz gentoo-cbb67e0be81716c147d845cec44e59be689b2ac2.tar.bz2 gentoo-cbb67e0be81716c147d845cec44e59be689b2ac2.zip |
sys-boot/syslinux: set DATE and HEXDATE
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-boot/syslinux')
-rw-r--r-- | sys-boot/syslinux/syslinux-6.04_pre3.ebuild | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys-boot/syslinux/syslinux-6.04_pre3.ebuild b/sys-boot/syslinux/syslinux-6.04_pre3.ebuild index 67929943e8d1..bf2d6923e02e 100644 --- a/sys-boot/syslinux/syslinux-6.04_pre3.ebuild +++ b/sys-boot/syslinux/syslinux-6.04_pre3.ebuild @@ -64,17 +64,21 @@ efimake() { } src_compile() { + local DATE=$(date -u -r NEWS +%Y%m%d) + local HEXDATE=$(printf '0x%08x' "${DATE}") + tc-export AR CC LD OBJCOPY RANLIB unset LDFLAGS + if use bios; then - emake bios + emake bios DATE="${DATE}" HEXDATE="${HEXDATE}" fi if use efi; then if use abi_x86_32; then - efimake x86 efi32 + efimake x86 efi32 DATE="${DATE}" HEXDATE="${HEXDATE}" fi if use abi_x86_64; then - efimake amd64 efi64 + efimake amd64 efi64 DATE="${DATE}" HEXDATE="${HEXDATE}" fi fi } |