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 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | deltask do_rm_work |
| 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 = "" |
| 20 | |
| 21 | python do_preconfigure () { |
| 22 | import subprocess |
| 23 | cmd = d.expand('cd ${S} && PATH=${PATH} gnu-configize') |
| 24 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
| 25 | # See 0044-gengtypes.patch, we need to regenerate this file |
| 26 | bb.utils.remove(d.expand("${S}/gcc/gengtype-lex.c")) |
| 27 | cmd = d.expand("sed -i 's/BUILD_INFO=info/BUILD_INFO=/' ${S}/gcc/configure") |
| 28 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
| 29 | } |
| 30 | addtask do_preconfigure after do_patch |
| 31 | do_preconfigure[depends] += "gnu-config-native:do_populate_sysroot autoconf-native:do_populate_sysroot" |
| 32 | |