blob: 9e8680a02a85a51e523f8d3555906ee84c9d167e (
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
|
inherit esw python3native features_check
require conf/${ESW_MACHINE}-libxil.conf
ESW_COMPONENT_SRC = "/XilinxProcessorIPLib/drivers/"
ESW_COMPONENT_NAME = "libxil.a"
DEPENDS += "xilstandalone xilmem"
REQUIRED_DISTRO_FEATURES = "${DISTRO_FEATURES}"
PACKAGECONFIG ?= "${DISTRO_FEATURES} ${MACHINE_FEATURES}"
do_configure_prepend() {
LOPPER_DTC_FLAGS="-b 0 -@" lopper.py ${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}
}
|