blob: 8fbb22f636dd2b6f3c729ae23a42cde666249f08 [file] [log] [blame]
Ken Chenb65f37e2018-01-15 14:36:21 +08001SUMMARY = "Qualcomm Rep board wiring"
2DESCRIPTION = "Board wiring information for the Qualcomm Rep system."
3PR = "r1"
4
5inherit allarch
6inherit setuptools
7inherit pythonnative
8inherit obmc-phosphor-license
9
10PROVIDES += "virtual/obmc-inventory-data"
11RPROVIDES_${PN} += "virtual-obmc-inventory-data"
12
13DEPENDS += "python"
14
15S = "${WORKDIR}"
16SRC_URI += "file://Centriq2400-rep.py"
17
18python() {
19 machine = d.getVar('MACHINE', True).capitalize() + '.py'
20 d.setVar('_config_in_skeleton', machine)
21}
22
23do_make_setup() {
24 cp ${S}/${_config_in_skeleton} \
25 ${S}/obmc_system_config.py
26 cat <<EOF > ${S}/setup.py
27from distutils.core import setup
28
29setup(name='${BPN}',
30 version='${PR}',
31 py_modules=['obmc_system_config'],
32 )
33EOF
34}
35
36addtask make_setup after do_patch before do_configure
37