Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 1 | SUMMARY = "Recompile libcma against pynqlib c" |
| 2 | LICENSE = "MIT" |
| 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b42e39ad2ddbad7e8ad47f3eee6feff5" |
| 4 | |
| 5 | CMA_ARCH_arm = "32" |
| 6 | CMA_ARCH_aarch64 = "64" |
| 7 | |
| 8 | PYNQBRANCH ?= "image_v2.4" |
| 9 | SRCBRANCHARG = "${@['nobranch=1', 'branch=${PYNQBRANCH}'][d.getVar('PYNQBRANCH', True) != '']}" |
| 10 | PYNQURI ?= "git://github.com/Xilinx/PYNQ.git;protocol=https" |
| 11 | |
| 12 | SRC_URI = "${PYNQURI};${SRCBRANCHARG}" |
| 13 | |
| 14 | SRCREV ?= "3d659d374701b7c34fa702e7aa23f71f9113f826" |
| 15 | |
| 16 | S="${WORKDIR}/git" |
| 17 | |
| 18 | CMA_ARCH_arm = "32" |
| 19 | CMA_ARCH_aarch64 = "64" |
| 20 | |
| 21 | do_install() { |
| 22 | |
| 23 | install -d ${D}/usr/lib/ |
| 24 | install -d ${D}/usr/include/ |
| 25 | |
| 26 | cd ${S}/sdbuild/packages/libsds/libcma |
| 27 | CMA_ARCH=${CMA_ARCH_${TARGET_ARCH}} make install DESTDIR=${D} |
| 28 | } |
| 29 | |
| 30 | SOLIBS = ".so" |
| 31 | FILES_SOLIBSDEV = "" |
| 32 | FILES_${PN} += "/usr/lib/libcma.so /usr/include" |
| 33 | |