diff --git a/recipes-bsp/nwal-lld/nwal-lld-test_git.bb b/recipes-bsp/nwal-lld/nwal-lld-test_git.bb new file mode 100644 index 00000000..3813df97 --- /dev/null +++ b/recipes-bsp/nwal-lld/nwal-lld-test_git.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "TI Network Abstraction Layer unit test binaries" + +DEPENDS = "common-csl-ip rm-lld qmss-lld hplib pa-lld sa-lld pktlib nwal-lld" + +include nwal-lld.inc + +EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}" + +do_compile () { + for device in ${DEVICELIST} + do + for choice in ${CHOICELIST} + do + oe_runmake clean NWAL_INC_DIR=${BASEDIR} NWAL_SRC_DIR=${S} USEDYNAMIC_LIB="$choice" DEVICE="$device" + oe_runmake tests NWAL_INC_DIR=${BASEDIR} NWAL_SRC_DIR=${S} USEDYNAMIC_LIB="$choice" DEVICE="$device" + done + done +} + +do_install () { + for device in ${DEVICELIST} + do + oe_runmake installbin INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="$device" + done +} diff --git a/recipes-bsp/nwal-lld/nwal-lld.inc b/recipes-bsp/nwal-lld/nwal-lld.inc new file mode 100644 index 00000000..1e771403 --- /dev/null +++ b/recipes-bsp/nwal-lld/nwal-lld.inc @@ -0,0 +1,18 @@ +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://${WORKDIR}/git/COPYING.txt;md5=b7982a377c680ad71ca2fbb735982462" + +COMPATIBLE_MACHINE = "keystone" + +BRANCH = "master" +SRC_URI = "git://git.ti.com/keystone-rtos/nwal-lld.git;protocol=git;branch=${BRANCH}" + +# Below commit ID corresponds to "DEV.NWAL.02.01.00.04A" +SRCREV = "099a9191e642c7732760078bf5af1e3c6ca0197b" +PV = "02.01.00.04" + +BASEDIR = "${WORKDIR}/git" +S = "${BASEDIR}/ti/drv/nwal" + +DEVICELIST = "k2h k2k k2l k2e" + +CHOICELIST = "yes no" diff --git a/recipes-bsp/nwal-lld/nwal-lld_git.bb b/recipes-bsp/nwal-lld/nwal-lld_git.bb new file mode 100644 index 00000000..da097300 --- /dev/null +++ b/recipes-bsp/nwal-lld/nwal-lld_git.bb @@ -0,0 +1,25 @@ +DESCRIPTION = "TI Network abstraction layer LLD library " + +DEPENDS = "common-csl-ip rm-lld qmss-lld hplib pa-lld sa-lld pktlib" + +include nwal-lld.inc + +EXTRA_OEMAKE += "-f makefile_armv7 PDK_INSTALL_PATH=${STAGING_INCDIR}" + +do_compile () { + for device in ${DEVICELIST} + do + for choice in ${CHOICELIST} + do + oe_runmake clean NWAL_INC_DIR=${BASEDIR} NWAL_SRC_DIR=${S} USEDYNAMIC_LIB="$choice" DEVICE="$device" + oe_runmake lib NWAL_INC_DIR=${BASEDIR} NWAL_SRC_DIR=${S} USEDYNAMIC_LIB="$choice" DEVICE="$device" + done + done +} + +do_install () { + for device in ${DEVICELIST} + do + oe_runmake install INSTALL_INC_BASE_DIR=${D}${includedir} INSTALL_LIB_BASE_DIR=${D}${libdir} INSTALL_BIN_BASE_DIR=${D}${bindir} DEVICE="$device" + done +}