diff options
Diffstat (limited to 'packages/dsplink/lpm.inc')
-rw-r--r-- | packages/dsplink/lpm.inc | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/packages/dsplink/lpm.inc b/packages/dsplink/lpm.inc index 211ffd3766..7938268c52 100644 --- a/packages/dsplink/lpm.inc +++ b/packages/dsplink/lpm.inc @@ -3,8 +3,6 @@ DESCRIPTION = "Codec Engine for TI ARM/DSP processors - power module" DEPENDS = "virtual/kernel perl-native dsplink" RDEPENDS = "update-modules" -inherit module - require ti-paths.inc PARALLEL_MAKE = "" @@ -13,22 +11,17 @@ do_compile_append() { echo "MVTOOL_PREFIX=${TARGET_PREFIX}" > ${S}/Rules.make echo "UCTOOL_PREFIX=${TARGET_PREFIX}" >> ${S}/Rules.make echo "LINUXKERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR}" >> ${S}/Rules.make + export DSPLINK=${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/dsplink # Build the DSP power manager kernel module - cd ${S}/cetools/packages/ti/bios/power - - # Unpack all kernel sources for the DSP power manager module - for dsp in $(ls | grep bld | awk -F, '{print $2}' | awk -F_ '{print $1}') ; do - if ! [ -e $dsp ] ; then tar xf ti_bios_power,${dsp}_bld.tar ; fi - done - - cd ${DSPPOWERSOC}/lpm - - unset LDFLAGS CFLAGS - make KERNEL_PATH=${STAGING_KERNEL_DIR} \ - KERNEL_SRC=${STAGING_KERNEL_DIR} \ - KERNEL_DIR=${STAGING_KERNEL_DIR} \ - KERNEL_VERSION=${KERNEL_VERSION} \ + cd ${S}/cetools/packages/ti/bios/power/modules/${DSPPOWERSOC}/lpm + + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + rm -f *o + make KERNEL_PATH=${STAGING_KERNEL_DIR} \ + KERNEL_SRC=${STAGING_KERNEL_DIR} \ + KERNEL_DIR=${STAGING_KERNEL_DIR} \ + KERNEL_VERSION=${KERNEL_VERSION} \ TOOL_PREFIX=${TARGET_PREFIX} \ DSPLINK_REPO=${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/ \ CC="${KERNEL_CC}" LD="${KERNEL_LD}" \ |