summaryrefslogtreecommitdiff
path: root/meta/recipes-core/uclibc/uclibc-initial_0.9.33.bb
blob: 51afab27667f8a5af0baf1c686fa89a752bc8738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SECTION = "base"
require uclibc.inc
require uclibc-${PV}.inc

DEPENDS = "linux-libc-headers ncurses-native virtual/${TARGET_PREFIX}gcc-initial"
PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"

PACKAGES = ""
PACKAGES_DYNAMIC = ""

STAGINGCC = "gcc-cross-initial"
STAGINGCC_virtclass-nativesdk = "gcc-crosssdk-initial"

do_install() {
	# Install initial headers into the cross dir
	make PREFIX=${D} DEVEL_PREFIX=${prefix}/ RUNTIME_PREFIX=/ \
		install_headers install_startfiles
	${CC} -nostdlib -nostartfiles -shared -x c /dev/null \
		-o lib/libc.so
	${CC} -nostdlib -nostartfiles -shared -x c /dev/null \
		-o lib/libm.so
	install -d ${D}${libdir}
	install -m 755 lib/lib[cm].so ${D}${libdir}
	# add links to linux-libc-headers: gcc-{cross,crossdk}-intermediate need this.
        for t in linux asm asm-generic; do
                if [ -d ${D}${includedir}/$t ]; then
                    rm -rf ${D}${includedir}/$t
                fi
                ln -sf ${STAGING_DIR_TARGET}${includedir}/$t ${D}${includedir}/
        done
}
do_compile() {
	:
}

do_siteconfig () {
        :
}

do_populate_sysroot[sstate-outputdirs] = "${STAGING_DIR_TCBOOTSTRAP}"