blob: 75c54837bf8075abe0ba9947241a85aba124b5e1 (
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
|
inherit esw python3native features_check
LIBXIL_CONFIG ??= ""
require ${LIBXIL_CONFIG}
ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/"
ESW_COMPONENT_NAME = "libxil.a"
DEPENDS += "xilstandalone "
REQUIRED_DISTRO_FEATURES = "${DISTRO_FEATURES}"
PACKAGECONFIG ?= "${DISTRO_FEATURES}"
do_configure:prepend() {
LOPPER_DTC_FLAGS="-b 0 -@" lopper ${DTS_FILE} -- baremetal_xparameters_xlnx.py ${ESW_MACHINE} ${S}
install -m 0755 xparameters.h ${S}/${ESW_COMPONENT_SRC}/
}
do_compile() {
# Combines the .a archives produced by all of the dependent items
cd ${RECIPE_SYSROOT}/usr/lib/
echo create libxil.a > libxil.mri
for each in ${REQUIRED_DISTRO_FEATURES}; do
each=$(echo $each | sed 's/-/_/g')
if [ -e lib$each.a ]; then
echo addlib lib$each.a >> libxil.mri
fi
done
echo “save” >> libxil.mri
echo “end” >> libxil.mri
${AR} -M <libxil.mri
cp libxil.a ${B}
}
|