1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-04-20 19:53:43 +00:00

sa-lld: utilize oe_runmake

* This fixes a configure issue when the sources may get cleaned.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Jacob Stiffler
2018-09-07 19:37:11 +00:00
committed by Denys Dmytriyenko
parent 36b8474560
commit 7a6f100825
2 changed files with 12 additions and 6 deletions

View File

@@ -14,14 +14,17 @@ DEVICELIST_k2e = "k2e"
CHOICELIST = "no yes"
PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR} SA_SRC_DIR=${S}"
do_compile () {
# Now build the lld in the updated directory
for device in ${DEVICELIST}
do
make -f makefile_armv7 clean PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" SA_SRC_DIR=${S}
oe_runmake clean DEVICE="$device"
for choice in ${CHOICELIST}
do
make -f makefile_armv7 examples utils PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" SA_SRC_DIR=${S} USEDYNAMIC_LIB="$choice"
oe_runmake examples utils DEVICE="$device" USEDYNAMIC_LIB="$choice"
done
done
}
@@ -34,7 +37,7 @@ do_install () {
for device in ${DEVICELIST}
do
make -f makefile_armv7 installbin PDK_INSTALL_PATH=${STAGING_INCDIR} DEVICE="$device" SA_SRC_DIR=${S} INSTALL_BIN_BASE_DIR=${D}${bindir}
oe_runmake installbin DEVICE="$device" INSTALL_BIN_BASE_DIR=${D}${bindir}
done
}

View File

@@ -4,15 +4,18 @@ DEPENDS = "common-csl-ip"
include sa-lld.inc
PR = "${INC_PR}.0"
PR = "${INC_PR}.1"
PARALLEL_MAKE = ""
EXTRA_OEMAKE = "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}"
do_compile () {
# Now build the lld in the updated directory
make -f makefile_armv7 clean lib PDK_INSTALL_PATH=${STAGING_INCDIR}
oe_runmake clean lib
}
do_install () {
make -f makefile_armv7 install PDK_INSTALL_PATH=${STAGING_INCDIR} INSTALL_INC_BASE_DIR=${D}/${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
oe_runmake install INSTALL_INC_BASE_DIR=${D}/${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir}
chown -R root:root ${D}
# Set the generic device library symbolic link