John Wang | af0bc6e | 2018-11-29 11:22:01 +0800 | [diff] [blame^] | 1 | SUMMARY = "Inspur On5263 board wiring" |
| 2 | DESCRIPTION = "Board wiring information for the On5263 system." |
| 3 | PR = "r1" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${INSPURBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
| 6 | |
| 7 | inherit allarch |
| 8 | inherit setuptools |
| 9 | inherit pythonnative |
| 10 | |
| 11 | PROVIDES += "virtual/obmc-inventory-data" |
| 12 | RPROVIDES_${PN} += "virtual-obmc-inventory-data" |
| 13 | |
| 14 | DEPENDS += "python" |
| 15 | |
| 16 | S = "${WORKDIR}" |
| 17 | SRC_URI += "file://On5263m5.py" |
| 18 | |
| 19 | # the following is unnecessary. |
| 20 | python() { |
| 21 | machine = d.getVar('MACHINE', True).capitalize() + '.py' |
| 22 | d.setVar('_config_in_skeleton', machine) |
| 23 | } |
| 24 | |
| 25 | do_make_setup() { |
| 26 | cp ${S}/${_config_in_skeleton} \ |
| 27 | ${S}/obmc_system_config.py |
| 28 | cat <<EOF > ${S}/setup.py |
| 29 | from distutils.core import setup |
| 30 | |
| 31 | setup(name='${BPN}', |
| 32 | version='${PR}', |
| 33 | py_modules=['obmc_system_config'], |
| 34 | ) |
| 35 | EOF |
| 36 | } |
| 37 | |
| 38 | addtask make_setup after do_patch before do_configure |