Joel Stanley | 7259c7d | 2019-11-04 23:43:51 +1030 | [diff] [blame] | 1 | SUMMARY = "eCMD" |
| 2 | DESCRIPTION = "eCMD is a hardware access API for IBM Systems" |
| 3 | LICENSE= "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${S}/NOTICE;md5=fee220301a2af3faf8f211524b4248ea" |
| 5 | |
| 6 | SRC_URI = "git://github.com/open-power/eCMD.git" |
Joel Stanley | ac6d51c | 2020-01-03 13:53:18 +1100 | [diff] [blame] | 7 | SRCREV = "b858b2f212bda2665ad41e821302e8196c7aec07" |
Brad Bishop | b3fceb3 | 2020-01-17 11:14:37 -0500 | [diff] [blame] | 8 | DEPENDS += "zlib" |
Joel Stanley | 7259c7d | 2019-11-04 23:43:51 +1030 | [diff] [blame] | 9 | |
Joel Stanley | 5f2105b | 2019-11-05 11:25:16 +1030 | [diff] [blame] | 10 | SRC_URI += "file://croserver.service" |
| 11 | |
Joel Stanley | 7259c7d | 2019-11-04 23:43:51 +1030 | [diff] [blame] | 12 | S = "${WORKDIR}/git" |
| 13 | |
Patrick Williams | 037f7bd | 2020-04-01 17:15:38 -0500 | [diff] [blame] | 14 | inherit python3native |
Brad Bishop | b3fceb3 | 2020-01-17 11:14:37 -0500 | [diff] [blame] | 15 | |
Joel Stanley | 7259c7d | 2019-11-04 23:43:51 +1030 | [diff] [blame] | 16 | do_configure() { |
Patrick Williams | 037f7bd | 2020-04-01 17:15:38 -0500 | [diff] [blame] | 17 | LD="${CXX}" ${PYTHON} ${S}/config.py \ |
| 18 | --without-swig --output-root ${B} --target obj \ |
| 19 | --extensions "cmd cip" --build-verbose |
Joel Stanley | 7259c7d | 2019-11-04 23:43:51 +1030 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | do_compile() { |
| 23 | cd ${S}/dllNetwork/server |
| 24 | oe_runmake |
| 25 | } |
| 26 | |
| 27 | do_install() { |
| 28 | install -d ${D}${bindir} |
| 29 | install -m 0755 out_obj/lib/server1p ${D}${bindir}/croserver |
Joel Stanley | 5f2105b | 2019-11-05 11:25:16 +1030 | [diff] [blame] | 30 | |
| 31 | install -d ${D}${systemd_system_unitdir} |
| 32 | install -m 0644 ${WORKDIR}/croserver.service ${D}${systemd_system_unitdir}/ |
Joel Stanley | 7259c7d | 2019-11-04 23:43:51 +1030 | [diff] [blame] | 33 | } |
Joel Stanley | 5f2105b | 2019-11-05 11:25:16 +1030 | [diff] [blame] | 34 | |
| 35 | FILES_${PN} += "${systemd_system_unitdir}/croserver.service" |