Lines 40-45
src_unpack() {
Link Here
|
40 |
unpack ${A} |
40 |
unpack ${A} |
41 |
cd "${S}" |
41 |
cd "${S}" |
42 |
|
42 |
|
|
|
43 |
epatch "${FILESDIR}/${P}-kernel-version.patch" |
44 |
|
43 |
if use x86; |
45 |
if use x86; |
44 |
then |
46 |
then |
45 |
epatch "${WORKDIR}/bcrypt-rc6-serpent.diff" |
47 |
epatch "${WORKDIR}/bcrypt-rc6-serpent.diff" |
Lines 49-54
src_unpack() {
Link Here
|
49 |
} |
51 |
} |
50 |
|
52 |
|
51 |
src_compile() { |
53 |
src_compile() { |
|
|
54 |
append-flags -fno-strict-aliasing |
52 |
filter-flags -fforce-addr |
55 |
filter-flags -fforce-addr |
53 |
|
56 |
|
54 |
emake -C kgsha CPP="$(tc-getCXX)" EXTRA_CXXFLAGS="${CXXFLAGS}" || die "library compile failed" |
57 |
emake -C kgsha CPP="$(tc-getCXX)" EXTRA_CXXFLAGS="${CXXFLAGS}" || die "library compile failed" |
Lines 58-69
src_compile() {
Link Here
|
58 |
# Don't put stack protection in the kernel - it just is bad |
61 |
# Don't put stack protection in the kernel - it just is bad |
59 |
_filter-hardened -fstack-protector-all -fstack-protector |
62 |
_filter-hardened -fstack-protector-all -fstack-protector |
60 |
|
63 |
|
61 |
emake -C mod SYMSRC=bc_dev${KV_MAJOR}${KV_MINOR}.c bc_dev.ver EXTRA_CFLAGS="${CFLAGS}" \ |
|
|
62 |
|| die "compile failed" |
63 |
|
64 |
emake -C mod OBJS="bc_dev${KV_MAJOR}${KV_MINOR}.o bc_mgr.o" \ |
64 |
emake -C mod OBJS="bc_dev${KV_MAJOR}${KV_MINOR}.o bc_mgr.o" \ |
65 |
KERNEL_DIR=${KV_DIR} KEXT=${KV_OBJ} CC=$(tc-getCC) LD=$(tc-getLD) \ |
65 |
KERNEL_DIR=${KV_DIR} KEXT=${KV_OBJ} CC=$(tc-getCC) LD=$(tc-getLD) \ |
66 |
AS=$(tc-getAS) CPP=$(tc-getCXX) EXTRA_CFLAGS="${CFLAGS}" || die "compile failed" |
66 |
AS=$(tc-getAS) CPP=$(tc-getCXX) EXTRA_CFLAGS="${CFLAGS}" \ |
|
|
67 |
KVER=${KV_MAJOR}.${KV_MINOR} \ |
68 |
|| die "compile failed" |
67 |
|
69 |
|
68 |
einfo "Modules compiled" |
70 |
einfo "Modules compiled" |
69 |
} |
71 |
} |