Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | deltask do_configure |
| 2 | deltask do_compile |
| 3 | deltask do_package |
| 4 | deltask do_package_write_rpm |
| 5 | deltask do_package_write_ipk |
| 6 | deltask do_package_write_deb |
| 7 | deltask do_install |
| 8 | deltask do_populate_sysroot |
| 9 | deltask do_populate_lic |
| 10 | deltask do_package_qa |
| 11 | deltask do_packagedata |
| 12 | deltask do_rm_work |
| 13 | |
| 14 | PN = "gcc-source-${PV}" |
| 15 | WORKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}" |
| 16 | SSTATE_SWSPEC = "sstate:gcc::${PV}:${PR}::${SSTATE_VERSION}:" |
| 17 | |
| 18 | STAMP = "${STAMPS_DIR}/work-shared/gcc-${PV}-${PR}" |
| 19 | STAMPCLEAN = "${STAMPS_DIR}/work-shared/gcc-${PV}-*" |
| 20 | |
| 21 | INHIBIT_DEFAULT_DEPS = "1" |
| 22 | DEPENDS = "" |
| 23 | PACKAGES = "" |
| 24 | |
| 25 | python do_preconfigure () { |
| 26 | import subprocess |
| 27 | cmd = d.expand('cd ${S} && PATH=${PATH} gnu-configize') |
| 28 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
| 29 | # See 0044-gengtypes.patch, we need to regenerate this file |
| 30 | bb.utils.remove(d.expand("${S}/gcc/gengtype-lex.c")) |
| 31 | cmd = d.expand("sed -i 's/BUILD_INFO=info/BUILD_INFO=/' ${S}/gcc/configure") |
| 32 | subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True) |
| 33 | } |
| 34 | addtask do_preconfigure after do_patch |
| 35 | do_preconfigure[depends] += "gnu-config-native:do_populate_sysroot autoconf-native:do_populate_sysroot" |
| 36 | |