Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | deltask do_configure |
| 2 | deltask do_compile |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 3 | deltask do_install |
| 4 | deltask do_populate_sysroot |
| 5 | deltask do_populate_lic |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 6 | RM_WORK_EXCLUDE += "${PN}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 7 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 8 | inherit nopackages |
| 9 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | PN = "gcc-source-${PV}" |
| 11 | WORKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}" |
| 12 | SSTATE_SWSPEC = "sstate:gcc::${PV}:${PR}::${SSTATE_VERSION}:" |
| 13 | |
| 14 | STAMP = "${STAMPS_DIR}/work-shared/gcc-${PV}-${PR}" |
| 15 | STAMPCLEAN = "${STAMPS_DIR}/work-shared/gcc-${PV}-*" |
| 16 | |
| 17 | INHIBIT_DEFAULT_DEPS = "1" |
| 18 | DEPENDS = "" |
| 19 | PACKAGES = "" |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 20 | TARGET_ARCH = "allarch" |
| 21 | TARGET_AS_ARCH = "none" |
| 22 | TARGET_CC_ARCH = "none" |
| 23 | TARGET_LD_ARCH = "none" |
| 24 | TARGET_OS = "linux" |
| 25 | baselib = "lib" |
| 26 | PACKAGE_ARCH = "all" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 28 | B = "${WORKDIR}/build" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | |
| 30 | # This needs to be Python to avoid lots of shell variables becoming dependencies. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | python do_preconfigure () { |
| 32 | import subprocess |
| 33 | cmd = d.expand('cd ${S} && PATH=${PATH} gnu-configize') |
| 34 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | cmd = d.expand("sed -i 's/BUILD_INFO=info/BUILD_INFO=/' ${S}/gcc/configure") |
| 36 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 37 | |
| 38 | # Easiest way to stop bad RPATHs getting into the library since we have a |
| 39 | # broken libtool here (breaks cross-canadian and target at least) |
| 40 | cmd = d.expand("sed -i -e 's/hardcode_into_libs=yes/hardcode_into_libs=no/' ${S}/libcc1/configure") |
| 41 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | } |
| 43 | addtask do_preconfigure after do_patch |
| 44 | do_preconfigure[depends] += "gnu-config-native:do_populate_sysroot autoconf-native:do_populate_sysroot" |
| 45 | |