Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 427352
Collapse All | Expand All

(-)klibc-2.0.4.ebuild (-18 / +8 lines)
Lines 23-53 Link Here
23
23
24
DESCRIPTION="A minimal libc subset for use with initramfs"
24
DESCRIPTION="A minimal libc subset for use with initramfs"
25
HOMEPAGE="http://www.zytor.com/mailman/listinfo/klibc/ https://www.kernel.org/pub/linux/libs/klibc/"
25
HOMEPAGE="http://www.zytor.com/mailman/listinfo/klibc/ https://www.kernel.org/pub/linux/libs/klibc/"
26
KV_MAJOR="3" KV_MINOR="x" KV_SUB="12"
26
KV_MAJOR="4" KV_MINOR="4" KV_SUB="1"
27
PKV_EXTRA=""
27
OKV="${KV_MAJOR}.${KV_MINOR}.${KV_SUB}"
28
if [[ ${PKV_EXTRA} ]]; then
29
	if [[ ${KV_MAJOR} == 2 ]]; then
30
		PKV="${KV_MAJOR}.${KV_MINOR}.$((${KV_SUB}+1))-${PKV_EXTRA}"
31
	else
32
		PKV="${KV_MAJOR}.$((${KV_SUB}+1))-${PKV_EXTRA}"
33
	fi
34
	PATCH_URI="mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/patch-${PKV}.${K_TARBALL_SUFFIX}"
35
fi
36
if [[ ${KV_MAJOR} == 2 ]]; then
37
	OKV="${KV_MAJOR}.${KV_MINOR}.${KV_SUB}"
38
else
39
	OKV="${KV_MAJOR}.${KV_SUB}"
40
fi
41
KERNEL_URI="
28
KERNEL_URI="
42
	mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/linux-${OKV}.tar.${K_TARBALL_SUFFIX}
29
	mirror://kernel/linux/kernel/v${KV_MAJOR}.x/linux-${OKV}.tar.${K_TARBALL_SUFFIX}"
43
	mirror://kernel/linux/kernel/v${KV_MAJOR}.${KV_MINOR}/testing/linux-${OKV}.tar.${K_TARBALL_SUFFIX}"
44
DEBIAN_PV=2.0.2
30
DEBIAN_PV=2.0.2
45
DEBIAN_PR=1
31
DEBIAN_PR=1
46
DEBIAN_A="${PN}_${DEBIAN_PV}-${DEBIAN_PR}.debian.tar.gz"
32
DEBIAN_A="${PN}_${DEBIAN_PV}-${DEBIAN_PR}.debian.tar.gz"
47
SRC_URI="
33
SRC_URI="
48
	mirror://kernel/linux/libs/klibc/${PV:0:3}/${P}.tar.${K_TARBALL_SUFFIX}
34
	mirror://kernel/linux/libs/klibc/${PV:0:3}/${P}.tar.${K_TARBALL_SUFFIX}
49
	mirror://debian/pool/main/k/klibc/${DEBIAN_A}
35
	mirror://debian/pool/main/k/klibc/${DEBIAN_A}
50
	${PATCH_URI}
51
	${KERNEL_URI}"
36
	${KERNEL_URI}"
52
37
53
LICENSE="|| ( GPL-2 LGPL-2 )"
38
LICENSE="|| ( GPL-2 LGPL-2 )"
Lines 154-159 Link Here
154
	unset ABI ARCH # Unset these, because they interfere
139
	unset ABI ARCH # Unset these, because they interfere
155
	unset KBUILD_OUTPUT # we are using a private copy
140
	unset KBUILD_OUTPUT # we are using a private copy
156
141
142
	if [[ "${CC}" == "clang" ]]; then
143
		export KCFLAGS="-fno-integrated-as"
144
	fi
145
146
	echo "${KCFLAGS}"
157
	cd "${KS}"
147
	cd "${KS}"
158
	emake ${defconfig} CC="${CC}" HOSTCC="${HOSTCC}" ARCH="${KLIBCASMARCH}" || die "No defconfig"
148
	emake ${defconfig} CC="${CC}" HOSTCC="${HOSTCC}" ARCH="${KLIBCASMARCH}" || die "No defconfig"
159
	if [[ "${KLIBCARCH/arm}" != "${KLIBCARCH}" ]] && \
149
	if [[ "${KLIBCARCH/arm}" != "${KLIBCARCH}" ]] && \

Return to bug 427352