blob: 794fd4de2e3f254243eecb0452457a27c5b0c266 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001deltask do_configure
2deltask do_compile
3deltask do_package
4deltask do_package_write_rpm
5deltask do_package_write_ipk
6deltask do_package_write_deb
7deltask do_install
8deltask do_populate_sysroot
9deltask do_populate_lic
10deltask do_package_qa
11deltask do_packagedata
12deltask do_rm_work
13
14PN = "gcc-source-${PV}"
15WORKDIR = "${TMPDIR}/work-shared/gcc-${PV}-${PR}"
16SSTATE_SWSPEC = "sstate:gcc::${PV}:${PR}::${SSTATE_VERSION}:"
17
18STAMP = "${STAMPS_DIR}/work-shared/gcc-${PV}-${PR}"
19STAMPCLEAN = "${STAMPS_DIR}/work-shared/gcc-${PV}-*"
20
21INHIBIT_DEFAULT_DEPS = "1"
22DEPENDS = ""
23PACKAGES = ""
24
25python 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}
34addtask do_preconfigure after do_patch
35do_preconfigure[depends] += "gnu-config-native:do_populate_sysroot autoconf-native:do_populate_sysroot"
36