Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
inherit eutils |
7 |
inherit eutils toolchain-funcs flag-o-matic |
8 |
|
8 |
|
9 |
DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith" |
9 |
DESCRIPTION="The rEFInd UEFI Boot Manager by Rod Smith" |
10 |
HOMEPAGE="http://www.rodsbooks.com/refind/" |
10 |
HOMEPAGE="http://www.rodsbooks.com/refind/" |
Lines 45-53
src_prepare() {
Link Here
|
45 |
} |
45 |
} |
46 |
|
46 |
|
47 |
src_compile() { |
47 |
src_compile() { |
|
|
48 |
append-cppflags "-D_REENTRANT -D_GNU_SOURCE" |
49 |
|
48 |
# Make main EFI |
50 |
# Make main EFI |
49 |
all_target=gnuefi |
51 |
local all_target=gnuefi |
50 |
emake ARCH=${BUILDARCH} ${all_target} |
52 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" ARCH=${BUILDARCH} ${all_target} |
51 |
|
53 |
|
52 |
# Make filesystem drivers |
54 |
# Make filesystem drivers |
53 |
export gnuefi_target="_gnuefi" |
55 |
export gnuefi_target="_gnuefi" |
Lines 56-62
src_compile() {
Link Here
|
56 |
if use "${fs}"; then |
58 |
if use "${fs}"; then |
57 |
einfo "Building ${fs} filesystem driver" |
59 |
einfo "Building ${fs} filesystem driver" |
58 |
rm -f "${S}/filesystems/fsw_efi.o" |
60 |
rm -f "${S}/filesystems/fsw_efi.o" |
59 |
emake -C "${S}/filesystems" ARCH=${BUILDARCH} ${fs}${gnuefi_target} |
61 |
emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS}" \ |
|
|
62 |
-C "${S}/filesystems" ARCH=${BUILDARCH} ${fs}${gnuefi_target} |
60 |
fi |
63 |
fi |
61 |
done |
64 |
done |
62 |
} |
65 |
} |