blob: 35cd2a1a3cb69cf5660c5f59fef62553fdc8409f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
SUMMARY = "Linux rfdc library"
SECTION = "librfdc"
LICENSE = "BSD"
inherit pkgconfig xlnx-embeddedsw features_check
REQUIRED_MACHINE_FEATURES = "rfsoc"
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
S = "${WORKDIR}/git"
PACKAGE_ARCH = "${MACHINE_ARCH}"
DEPENDS = "libmetal"
PROVIDES = "librfdc"
RFDC_SUBDIR = "XilinxProcessorIPLib/drivers/rfdc/src"
do_compile:prepend() {
cd ${S}/${RFDC_SUBDIR}
cp Makefile.Linux Makefile
}
do_install() {
install -d ${D}${libdir}
install -d ${D}${includedir}
cd ${S}/${RFDC_SUBDIR}
oe_libinstall -so librfdc ${D}${libdir}
install -m 0644 xrfdc_hw.h ${D}${includedir}/xrfdc_hw.h
install -m 0644 xrfdc.h ${D}${includedir}/xrfdc.h
}
FILES:${PN} = "${libdir}/*.so.*"
FILES:${PN}-dev = "${libdir}/*.so ${includedir}/*"
|