Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | DEPENDS = "linux-libc-headers virtual/${TARGET_PREFIX}gcc-initial libgcc-initial make-native bison-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 2 | PROVIDES = "virtual/${TARGET_PREFIX}libc-initial" |
| 3 | |
| 4 | PACKAGES = "" |
| 5 | PACKAGES_DYNAMIC = "" |
| 6 | |
| 7 | STAGINGCC = "gcc-cross-initial-${TARGET_ARCH}" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 8 | STAGINGCC_class-nativesdk = "gcc-crosssdk-initial-${SDK_SYS}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
| 10 | do_configure () { |
| 11 | (cd ${S} && gnu-configize) || die "failure in running gnu-configize" |
| 12 | find ${S} -name "configure" | xargs touch |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 13 | cfgscript=`python3 -c "import os; print(os.path.relpath('${S}', '.'))"`/configure |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 14 | $cfgscript --host=${TARGET_SYS} --build=${BUILD_SYS} \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | --prefix=/usr \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | --disable-sanity-checks \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | --with-headers=${STAGING_DIR_TARGET}${includedir} \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 18 | --enable-hacker-mode |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | } |
| 20 | |
| 21 | do_compile () { |
| 22 | : |
| 23 | } |
| 24 | |
| 25 | do_install () { |
| 26 | oe_runmake cross-compiling=yes install_root=${D} \ |
| 27 | includedir='${includedir}' prefix='${prefix}' \ |
| 28 | install-bootstrap-headers=yes install-headers |
| 29 | |
| 30 | oe_runmake csu/subdir_lib |
| 31 | mkdir -p ${D}${libdir}/ |
| 32 | install -m 644 csu/crt[1in].o ${D}${libdir} |
| 33 | |
| 34 | # Two headers -- stubs.h and features.h -- aren't installed by install-headers, |
| 35 | # so do them by hand. We can tolerate an empty stubs.h for the moment. |
| 36 | # See e.g. http://gcc.gnu.org/ml/gcc/2002-01/msg00900.html |
| 37 | mkdir -p ${D}${includedir}/gnu/ |
| 38 | touch ${D}${includedir}/gnu/stubs.h |
| 39 | cp ${S}/include/features.h ${D}${includedir}/features.h |
| 40 | |
| 41 | if [ -e ${B}/bits/stdio_lim.h ]; then |
| 42 | cp ${B}/bits/stdio_lim.h ${D}${includedir}/bits/ |
| 43 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 44 | } |
| 45 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 46 | do_stash_locale() { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 47 | : |
| 48 | } |
| 49 | |
| 50 | do_siteconfig () { |
| 51 | : |
| 52 | } |
| 53 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 54 | inherit nopackages |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 55 | |
| 56 | # We really only want this built by things that need it, not any recrdeptask |
| 57 | deltask do_build |