1
0
mirror of https://git.yoctoproject.org/meta-ti synced 2026-06-04 18:00:36 +00:00

recipes-ti: remove deprecated components

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
This commit is contained in:
Denys Dmytriyenko
2018-02-02 13:37:25 -05:00
parent 7577f46fda
commit f9b0c06732
22 changed files with 0 additions and 2081 deletions
-89
View File
@@ -1,89 +0,0 @@
DESCRIPTION = "TI C6Accel - DSP Software Libraries on ARM"
HOMEPAGE = "https://gforge01.dal.design.ti.com/gf/project/dsplib4arm/"
SECTION = "devel"
LICENSE = "TI-TSPA"
require recipes-ti/includes/ti-paths.inc
require recipes-ti/includes/ti-staging.inc
require recipes-ti/includes/ti-eula-unpack.inc
PLATFORM_omapl138 = "omapl138"
PLATFORM_omap3 = "omap3530"
PLATFORM ?= "UNDEFINED_PLATFORM"
COMPATIBLE_MACHINE = "(omapl138|omap3)"
PROVIDES += "ti-c6accel-apps"
# This recipe links statically against kernel dependant stuff, use kernel PR as base and append a local version
PR = "${MACHINE_KERNEL_PR}"
PR_append = "a"
S = "${WORKDIR}/c6accel_${PV}"
# http://software-dl.ti.com/dsps/dsps_public_sw/c6000/web/c6accel/latest/index_FDS.html
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/c6000/web/c6accel/latest/exports//c6accel_${PV}_Linux-x86_Setup.bin;name=c6accelbin "
BINFILE="c6accel_${PV}_Linux-x86_Setup.bin"
TI_BIN_UNPK_CMDS="Y:workdir"
DEPENDS = "ti-codec-engine ti-xdais ti-dsplink ti-dspbios"
DEPENDS += "ti-edma3lld ti-cgt6x ti-xdctools-native ti-framework-components"
DEPENDS += "ti-biosutils"
TIARGS = ' \
PLATFORM="${PLATFORM}" \
CE_INSTALL_DIR="${CE_INSTALL_DIR}" \
XDAIS_INSTALL_DIR="${XDAIS_INSTALL_DIR}" \
LINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \
CMEM_INSTALL_DIR="${CMEM_INSTALL_DIR}" \
EDMA3_LLD_INSTALL_DIR="${EDMA3_LLD_INSTALL_DIR}" \
CODEGEN_INSTALL_DIR="${CODEGEN_INSTALL_DIR}" \
XDC_INSTALL_DIR="${XDC_INSTALL_DIR}" \
FC_INSTALL_DIR="${FC_INSTALL_DIR}" \
BIOS_INSTALL_DIR="${BIOS_INSTALL_DIR}" \
BIOSUTILS_INSTALL_DIR="${BIOSUTILS_INSTALL_DIR}" \
LPM_INSTALL_DIR="${LPM_INSTALL_DIR}" \
SERVER_INSTALL_DIR="${CODEC_INSTALL_DIR}" \
C6ACCEL_INSTALL_DIR="${S}" \
CSTOOL_DIR="${TOOLCHAIN_PATH}" \
CSTOOL_PREFIX="${TOOLCHAIN_PATH}/${TARGET_PREFIX}" \
LINUXLIBS_INSTALL_DIR="${STAGING_DIR_TARGET}" \
CFLAGS=" ${TARGET_CC_ARCH} ${CFLAGS}" LDFLAGS="${LDFLAGS}" \
'
do_configure() {
unset VERBOSE
make ${TIARGS} clean
sed -i -e 's:-L$(LINUXLIBS_INSTALL_DIR)/lib:-L$(LINUXLIBS_INSTALL_DIR)/lib -L$(LINUXLIBS_INSTALL_DIR)/usr/lib ${LDFLAGS}:' ${S}/soc/app/Makefile
}
do_compile() {
unset VERBOSE
make ${TIARGS} all
}
do_install() {
install -d ${D}${C6ACCEL_INSTALL_DIR_RECIPE}
cp -pPrf ${S}/* ${D}${C6ACCEL_INSTALL_DIR_RECIPE}
# update linker.cmd file to point to sysroot
sed -i ${i} -e s=${S}=${C6ACCEL_INSTALL_DIR}=g ${D}${C6ACCEL_INSTALL_DIR_RECIPE}/soc/app/c6accel_app_config/linker.cmd
cd ${S}
make \
PLATFORM="${PLATFORM}" \
CMEM_INSTALL_DIR="${CMEM_INSTALL_DIR}" \
LINK_INSTALL_DIR="${LINK_INSTALL_DIR}" \
LPM_INSTALL_DIR="${LPM_INSTALL_DIR}" \
C6ACCEL_INSTALL_DIR="${S}" \
EXEC_DIR_C6ACCEL="${D}/${installdir}/c6accel-apps" \
install
}
PACKAGES += "ti-c6accel-apps"
FILES_ti-c6accel-apps = "${installdir}/c6accel-apps/*"
INSANE_SKIP_ti-c6accel-apps = "1"
RDEPENDS_ti-c6accel-apps += "ti-cmem-module ti-dsplink-module"
@@ -1,82 +0,0 @@
From 192b19046a67263da44203bf50a5b51d0a655fec Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Fri, 31 Dec 2010 15:26:37 +0100
Subject: [PATCH] soc: honour buildsystem CFLAGS and LDFLAGS when set
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
soc/app/Makefile | 13 ++++---------
soc/c6accelw/Makefile | 14 ++++----------
2 files changed, 8 insertions(+), 19 deletions(-)
diff --git a/soc/app/Makefile b/soc/app/Makefile
index 2647746..bed937e 100755
--- a/soc/app/Makefile
+++ b/soc/app/Makefile
@@ -53,15 +53,10 @@ CONFIGURO = $(XDC_INSTALL_DIR)/xs xdc.tools.configuro
CONFIG_BLD = ../../config.bld
ifeq ($(BUILD_TYPE), release)
-ifeq ($(ARM_ISA),armv7-a)
- C_FLAGS += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp
-endif
-ifeq ($(ARM_ISA),armv5t)
- C_FLAGS += -mlittle-endian -march=armv5t -mtune=arm9tdmi -mabi=aapcs-linux -O
-endif
+C_FLAGS += $(CFLAGS)
else
CPP_FLAGS += -DNDEBUG
- C_FLAGS += -Wall -g
+ C_FLAGS += $(CFLAGS) -Wall -g
endif
@@ -72,7 +67,7 @@ ifeq ($(PLATFORM),omapl138)
C_FLAGS += -DPLATFORM=138
endif
-LD_FLAGS += -L$(LINUXLIBS_INSTALL_DIR)/lib -lm -lpthread
+LD_FLAGS += $(LDFLAGS) -L$(LINUXLIBS_INSTALL_DIR)/lib -lm -lpthread
C6ACCEL_LIB += ../c6accelw/lib/c6accelw_$(PLATFORM).a470MV
COMPILE.c = $(VERBOSE) $(CSTOOL_PREFIX)gcc $(CPP_FLAGS) $(C_FLAGS) $(CPP_FLAGS) -c
@@ -102,7 +97,7 @@ $(TARGET): $(OBJFILES) $(C6ACCEL_LIB) $(XDC_LFILE)
$(OBJFILES): %.o: %.c $(HEADERS) $(XDC_CFLAGS)
@echo Compiling $@ from $<..
- $(COMPILE.c) $(shell cat $(XDC_CFLAGS)) -o $@ $<
+ $(COMPILE.c) $(shell cat $(XDC_CFLAGS) | sed 's:-march=armv5t::g') -o $@ $<
$(XDC_LFILE) $(XDC_CFLAGS): $(XDC_CFGFILE)
@echo
diff --git a/soc/c6accelw/Makefile b/soc/c6accelw/Makefile
index cc58acf..298ab3b 100755
--- a/soc/c6accelw/Makefile
+++ b/soc/c6accelw/Makefile
@@ -21,19 +21,13 @@ BUILD_TYPE=release
CPP_FLAGS += -I../packages -I$(XDC_INSTALL_DIR)/packages -I$(CE_INSTALL_DIR)/packages -I$(XDAIS_INSTALL_DIR)/packages -Dxdc_target_name__=arm/GCArmv5T -Dxdc_target_types__=gnu/targets/std.h
ifeq ($(BUILD_TYPE), release)
-ifeq ($(ARM_ISA),armv7-a)
- C_FLAGS += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp
- endif
-ifeq ($(ARM_ISA),armv5t)
- C_FLAGS += -mlittle-endian -march=armv5t -mtune=arm9tdmi -mabi=aapcs-linux -O
- endif
-
+C_FLAGS += $(CFLAGS)
else
- CPP_FLAGS += -DNDEBUG
- C_FLAGS += -Wall -g
+ CPP_FLAGS += -DNDEBUG
+ C_FLAGS += $(CFLAGS) -Wall -g
endif
-LD_FLAGS += -L$(LINUXLIBS_INSTALL_DIR)/lib
+LD_FLAGS += $(LDFLAGS) -L$(LINUXLIBS_INSTALL_DIR)/lib
AR_FLAGS +=
COMPILE.c = $(VERBOSE) $(CSTOOL_PREFIX)gcc $(CPP_FLAGS) $(C_FLAGS) -c
--
1.6.6.1
@@ -1,81 +0,0 @@
diff -uNr c6accel_1_00_00_04_orig/soc/app/omap3530/loadmodules_omap3530_c6accel.sh c6accel_1_00_00_04/soc/app/omap3530/loadmodules_omap3530_c6accel.sh
--- c6accel_1_00_00_04_orig/soc/app/omap3530/loadmodules_omap3530_c6accel.sh 2010-07-26 16:18:35.000000000 -0500
+++ c6accel_1_00_00_04/soc/app/omap3530/loadmodules_omap3530_c6accel.sh 2010-09-12 11:50:46.129159981 -0500
@@ -1,4 +1,4 @@
-# loadmodules.sh
+#!/bin/sh
#
# Copyright (C) $year Texas Instruments Incorporated - http://www.ti.com/
#
@@ -11,34 +11,16 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
-#
-# Default Memory Map
-#
-# Start Addr Size Description
-# -------------------------------------------
-# 0x80000000 88 MB Linux
-# 0x85800000 08 MB CMEM
-# 0x86800000 24 MB DDRALGHEAP
-# 0x87800000 6 MB DDR2 (BIOS, Codecs, Applications)
-# 0x87E00000 1 MB DSPLINK (MEM)
-# 0x87F00000 4 KB DSPLINK (RESET)
-# 0x87F01000 1020 KB unused
-rmmod cmemk.ko
-rmmod lpm_omap3530.ko
-rmmod dsplinkk
-# Allocate 15MB for CMEM
-insmod cmemk.ko phys_start=0x86300000 phys_end=0x87200000 pools=20x4096
+# remove previously loaded cmem to ensure that it configured to use our pool configuration
+rmmod cmemk 2>/dev/null
-# insert DSP/BIOS Link driver
-#
-insmod dsplinkk.ko
+# Allocate 15MB for CMEM
+modprobe cmemk phys_start=0x86300000 phys_end=0x87200000 pools=20x4096 allowOverlap=1
+modprobe dsplinkk
+modprobe lpm_omap3530
# make /dev/dsplink
rm -rf /dev/dsplink
mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
-# insert Local Power Manager driver
-#
-insmod lpm_omap3530.ko
-
diff -uNr c6accel_1_00_00_04_orig/soc/app/omapl138/loadmodules_omapl138_c6accel.sh c6accel_1_00_00_04/soc/app/omapl138/loadmodules_omapl138_c6accel.sh
--- c6accel_1_00_00_04_orig/soc/app/omapl138/loadmodules_omapl138_c6accel.sh 2010-07-27 09:45:37.000000000 -0500
+++ c6accel_1_00_00_04/soc/app/omapl138/loadmodules_omapl138_c6accel.sh 2010-09-12 11:52:07.193160179 -0500
@@ -1,4 +1,4 @@
-#
+#!/bin/sh
# Copyright (c) 2008, Texas Instruments Incorporated
# All rights reserved.
#
@@ -29,15 +29,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-rmmod dsplinkk.ko
-rmmod cmemk.ko
+
+# remove previously loaded cmem to ensure that its configured to use our pool configuration.
+rmmod cmemk 2>/dev/null
+
# insert cmemk, tell it to occupy physical 120MB-128MB, create
# 20 4K buffers, 10 128K buffers and two 1MB buffers
-insmod cmemk.ko phys_start=0xC2000000 phys_end=0xC4000000 pools=20x4096
-
-# insert DSP/BIOS Link driver
-#
-insmod dsplinkk.ko
+modprobe cmemk phys_start=0xC2000000 phys_end=0xC4000000 pools=20x4096 allowOverlap=1
+modprobe dsplinkk
# make /dev/dsplink
rm -f /dev/dsplink
@@ -1,16 +0,0 @@
require ti-c6accel.inc
SRC_URI[c6accelbin.md5sum] = "4cfb9ae9d1b69954a22b454726d4d6cb"
SRC_URI[c6accelbin.sha256sum] = "9fac3295c5c8533535e18f96c9a31c446f5a275798ace8c145f9ed51fa3e3ece"
LIC_FILES_CHKSUM = "file://docs/ReleaseNotes_C6Accel.txt;md5=28fbd64e0ba4a1af1a2f1179024f38a9"
SSRC_URI_append = " \
file://0001-soc-honour-buildsystem-CFLAGS-and-LDFLAGS-when-set.patch \
"
PV = "1_01_00_06"
CFLAGS += "-fPIC"
-195
View File
@@ -1,195 +0,0 @@
DESCRIPTION = "DSPLINK Inter-Processor Communications (IPC) for TI ARM/DSP processors"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/DSPLink/index.html"
SECTION = "devel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://dsplink/doc/gpl_2.0.pdf;md5=70996be607b61df78ce46093f4afe2bd"
# TODO :: KERNEL_CC, should use for kernel cc for module build?
# TODO :: Need to understand why OBJDUMP is required for kernel module
# TODO :: Unset required since LDFLAGS gets picked up and used incorrectly - investigate
# TODO :: Do we need to pass so many variables to each make step?
inherit module
require ../includes/ti-paths.inc
require ../includes/ti-staging.inc
PROVIDES = "ti-dsplink-module"
PROVIDES += "ti-dsplink-examples"
# This package builds a kernel module, use kernel PR as base and append a local version
PR = "${MACHINE_KERNEL_PR}"
PR_append = "h"
S = "${WORKDIR}/dsplink_linux_${PV}"
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/${PV_DL_PATH}/dsplink_linux_${PV}.tar.gz;name=dsplinktarball \
file://ti-dsplink-examples-run.sh \
file://ti-dsplink-examples-loadmodules.sh \
file://ti-dsplink-examples-unloadmodules.sh "
DEPENDS = "ti-dspbios ti-xdctools-native ti-cgt6x"
DEPENDS += "virtual/kernel perl-native"
# SOC_FAMILY configuration
DSPLINKPLATFORM_dm6446 = "DAVINCI"
DSPLINKPLATFORM_dm6467 = "DAVINCIHD"
DSPLINKPLATFORM_omapl137 = "OMAPL1XX"
DSPLINKPLATFORM_omapl138 = "OMAPL138"
DSPLINKPLATFORM_omap3 = "OMAP3530"
DSPLINKPLATFORM ?= "<UNDEFINED_DSPLINKPLATFORM>"
DSPLINKDSPCFG_dm6446 = "DM6446GEMSHMEM"
DSPLINKDSPCFG_dm6467 = "DM6467GEMSHMEM"
DSPLINKDSPCFG_omapl137 = "OMAPL1XXGEMSHMEM"
DSPLINKDSPCFG_omapl138 = "OMAPL138GEMSHMEM"
DSPLINKDSPCFG_omap3 = "OMAP3530SHMEM"
DSPLINKDSPCFG ?= "<UNDEFINED_DSPLINKDSPCFG>"
DSPLINKDSP_dm6446 = "DM6446GEM_0"
DSPLINKDSP_dm6467 = "DM6467GEM_0"
DSPLINKDSP_omapl137 = "OMAPL1XXGEM_0"
DSPLINKDSP_omapl138 = "OMAPL138GEM_0"
DSPLINKDSP_omap3 = "OMAP3530_0"
DSPLINKDSP ?= "<UNDEFINED_DSPLINKDSP>"
DSPLINKGPPOS_dm6446 = "DM6446LSP"
DSPLINKGPPOS_dm6467 = "DM6467LSP"
DSPLINKGPPOS_omapl137 = "ARM"
DSPLINKGPPOS_omapl138 = "ARM"
DSPLINKGPPOS_omap3 = "OMAPLSP"
DSPLINKGPPOS ?= "<DEFINED_DSPLINKGPPOS>"
# Exported Variable needed by build
DSPLINK = "${S}/dsplink"
export DSPLINK
do_configure() {
# Run perl script to create appropriate makefiles (v1.60 and up)
(
cd ${DSPLINK}
perl config/bin/dsplinkcfg.pl --platform=${DSPLINKPLATFORM} --nodsp=1 \
--dspcfg_0=${DSPLINKDSPCFG} --dspos_0=DSPBIOS5XX \
--gppos=${DSPLINKGPPOS} --comps=ponslrmc
)
}
do_prepsources () {
# Prepare the tree for rebuiling - clean and generate interfaces
XDCPATH=${DSPLINK} ${XDC_INSTALL_DIR}/xdc .make -PR .
XDCPATH=${DSPLINK} ${XDC_INSTALL_DIR}/xdc clean -PR .
XDCPATH=${DSPLINK} ${XDC_INSTALL_DIR}/xdc .interfaces -PR .
}
addtask prepsources after do_configure before do_compile
do_compile() {
# TODO :: KERNEL_CC, should use for kernel module build?
# TODO :: Need to understand why OBJDUMP is required for kernel module
# Unset these since LDFLAGS gets picked up and used incorrectly.... need
# investigation
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
# Build the gpp user space library
cd ${DSPLINK}/gpp/src/api && make \
CROSS_COMPILE="${TARGET_PREFIX}" \
CC="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
AR="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
LD="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ld" \
COMPILER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
ARCHIVER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
KERNEL_DIR="${STAGING_KERNEL_DIR}" \
all
# Build the gpp kernel space (debug and release)
do_make_scripts
cd ${DSPLINK}/gpp/src && make \
OBJDUMP="${TARGET_PREFIX}objdump" \
CROSS_COMPILE="${TARGET_PREFIX}" \
CC="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
AR="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
LD="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ld" \
COMPILER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
ARCHIVER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
KERNEL_DIR="${STAGING_KERNEL_DIR}" \
BASE_BUILDOS="${STAGING_KERNEL_DIR}" \
all
# Build the gpp samples
cd ${DSPLINK}/gpp/src/samples && make \
BASE_TOOLCHAIN="${TOOLCHAIN_PATH}" \
BASE_CGTOOLS="${BASE_TOOLCHAIN}/bin" \
OSINC_PLATFORM="${TOOLCHAIN_PATH}/lib/gcc/${TARGET_SYS}/$(${TARGET_PREFIX}gcc -dumpversion)/include" \
OSINC_TARGET="${BASE_TOOLCHAIN}/target/usr/include" \
CROSS_COMPILE="${TARGET_PREFIX}" \
CC="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
LD="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
AR="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
COMPILER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
LINKER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}gcc" \
ARCHIVER="${TOOLCHAIN_PATH}/${TARGET_PREFIX}ar" \
KERNEL_DIR="${STAGING_KERNEL_DIR}" \
all
# Build the dsp library (debug and release)
cd ${DSPLINK}/dsp/src && make \
BASE_CGTOOLS="${CODEGEN_INSTALL_DIR}" \
BASE_SABIOS="${BIOS_INSTALL_DIR}" \
all
# Build the dsp samples (debug and release)
cd ${DSPLINK}/dsp/src/samples && make \
BASE_CGTOOLS="${CODEGEN_INSTALL_DIR}" \
BASE_SABIOS="${BIOS_INSTALL_DIR}" \
all
}
KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
do_install () {
# Install the kernel module
install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
install -m 0755 ${DSPLINK}/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/RELEASE/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/
# Install the example apps (gpp and dsp)
install -d ${D}/${installdir}/ti-dsplink-examples/
cp ${DSPLINK}/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/RELEASE/*gpp ${D}/${installdir}/ti-dsplink-examples
cp ${DSPLINK}/dsp/export/BIN/DspBios/${DSPLINKPLATFORM}/${DSPLINKDSP}/RELEASE/*.out ${D}/${installdir}/ti-dsplink-examples
# Install the example apps module un/load scripts
install ${WORKDIR}/ti-dsplink-examples-loadmodules.sh ${D}/${installdir}/ti-dsplink-examples
install ${WORKDIR}/ti-dsplink-examples-unloadmodules.sh ${D}/${installdir}/ti-dsplink-examples
install ${WORKDIR}/ti-dsplink-examples-run.sh ${D}/${installdir}/ti-dsplink-examples
# Install/Stage the Source Tree
install -d ${D}${LINK_INSTALL_DIR_RECIPE}
cp -pPrf ${S}/* ${D}${LINK_INSTALL_DIR_RECIPE}
chmod -R +w ${D}${LINK_INSTALL_DIR_RECIPE}
# Changes path of include txt file to use LINK_INSTALL_DIR variable for GPP
for i in $(find ${D}${LINK_INSTALL_DIR_RECIPE}/dsplink/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/*/ -name "*.txt"); do
sed -i ${i} -e s=${S}=\$\{LINK_INSTALL_DIR\}=g
done
# Changes path of include txt file to use LINK_INSTALL_DIR variable for DSP
for i in $(find ${D}${LINK_INSTALL_DIR_RECIPE}/dsplink/dsp/export/BIN/DspBios/${DSPLINKPLATFORM}/${DSPLINKDSP}/*/ -name "*.txt"); do
sed -i ${i} -e s=${S}=\$\{LINK_INSTALL_DIR\}=g
done
}
PACKAGES =+ "ti-dsplink-module"
FILES_ti-dsplink-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/dsplinkk.ko"
PACKAGES += "ti-dsplink-examples"
RDEPENDS_ti-dsplink-examples_append = " ti-dsplink-module"
RDEPENDS_ti-dsplink-examples_append_omap3 += " ti-lpm-module ti-lpm-utils"
FILES_ti-dsplink-examples = "${installdir}/ti-dsplink-examples/*"
INSANE_SKIP_ti-dsplink-examples = "1"
@@ -1,28 +0,0 @@
From a96aa25518f306138c71b3fc074381f102092a13 Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Fri, 23 Dec 2011 10:58:47 +0100
Subject: [PATCH] remove check for make version, 3.85 works fine
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
dsplink/make/start.mk | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/dsplink/make/start.mk b/dsplink/make/start.mk
index 0589f3c..a8f5740 100644
--- a/dsplink/make/start.mk
+++ b/dsplink/make/start.mk
@@ -39,10 +39,6 @@
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# ============================================================================
-
-# Check for MAKE version
-$(if $(filter $(MAKE_VERSION), 3.81 3.81beta1 3.90 3.92),,\
-$(error This makefile requires one of GNU make version 3.81 3.81beta1 3.90 3.92))
# ============================================================================
# Export the directory separator
# ============================================================================
--
1.7.7.4
@@ -1,71 +0,0 @@
From e0931bf37628727903a567f1c7096ae0011edc3d Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Tue, 4 Jan 2011 13:49:05 +0100
Subject: [PATCH] Adjust drv_pmgr for post 2.6.36 ioctl changes
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c b/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c
index a9b831c..e4a836d 100644
--- a/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c
+++ b/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c
@@ -399,10 +399,15 @@ DRV_Release (struct inode * inode, struct file * filp) ;
* @see None
* ----------------------------------------------------------------------------
*/
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
STATIC
int
DRV_Ioctl (struct inode * inode, struct file * filp,
unsigned int cmd, unsigned long args) ;
+#else
+STATIC
+int DRV_Ioctl (struct file *filp, unsigned int cmd, unsigned long args);
+#endif
/** ----------------------------------------------------------------------------
@@ -495,7 +500,11 @@ STATIC struct file_operations driverOps = {
open: DRV_Open,
flush: DRV_Flush,
release: DRV_Release,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
ioctl: DRV_Ioctl,
+#else
+ unlocked_ioctl: DRV_Ioctl,
+#endif
mmap: DRV_Mmap,
read: DRV_Read,
.owner = THIS_MODULE
@@ -817,10 +826,16 @@ DRV_Release (struct inode * inode, struct file * filp)
* @desc Function to invoke the APIs through ioctl.
* ----------------------------------------------------------------------------
*/
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
STATIC
NORMAL_API
int DRV_Ioctl (struct inode * inode, struct file * filp,
unsigned int cmd, unsigned long args)
+#else
+STATIC
+NORMAL_API
+int DRV_Ioctl (struct file *filp, unsigned int cmd, unsigned long args)
+#endif
{
DSP_STATUS status = DSP_SOK ;
int osStatus = 0 ;
@@ -829,7 +844,7 @@ int DRV_Ioctl (struct inode * inode, struct file * filp,
CMD_Args apiArgs ;
- TRC_4ENTER ("DRV_Ioctl", inode, filp, cmd, args) ;
+ TRC_3ENTER ("DRV_Ioctl", filp, cmd, args) ;
retVal = copy_from_user ((Pvoid) &apiArgs,
(const Pvoid) srcAddr,
--
1.6.6.1
@@ -1,337 +0,0 @@
From 7b36e94dcb33892e1df7d3327db31bd41fb6167e Mon Sep 17 00:00:00 2001
From: Roger Monk <r-monk@ti.com>
Date: Fri, 5 Mar 2010 19:22:58 +0000
Subject: [PATCH] dsplink_1_64: Add support for building with CS tools + against 2.6.30+
* Tweaked Patches from Niclas
Signed-off-by: Roger Monk <r-monk@ti.com>
---
dsplink/config/bin/dsplinkcfg.pl | 17 ++++-
dsplink/gpp/src/DIRS | 5 +
dslpink/gpp/src/Makefile | 8 ++-
dsplink/gpp/src/Rules.mk | 5 +
dsplink/make/Linux/davinci_2.6.mk | 211 +++++++++++++++++++++++++++++++++++++++++++++
5 files changed, 244 insertions(+), 2 deletions(-)
create mode 100644 make/Linux/davinci_2.6.mk
diff --git a/dsplink/config/bin/dsplinkcfg.pl b/dsplink/config/bin/dsplinkcfg.pl
index 644aa38..e83c133 100644
--- a/dsplink/config/bin/dsplinkcfg.pl
+++ b/dsplink/config/bin/dsplinkcfg.pl
@@ -215,6 +215,18 @@ my %CFG_GPPOS_DM6467LSPuc =
'OSPREFIX' => 'uc',
) ;
+# DM6446 Linux
+my %CFG_GPPOS_DM6446LSP =
+(
+ 'NAME' => 'DM6446LSP',
+ 'PREFIX' => '2.6',
+ 'ID' => 'DM6446LSP',
+ 'DESC' => 'DM6446 LSP for DM6446',
+ 'VER' => '2.6.18',
+ 'TYPE' => 'Linux',
+ 'LOADERS'=> [\%CFG_LOADER_COFF, ],
+ 'COMPS' => 'ponslrmc',
+) ;
# OMAPL138 Linux with uCLibc filesystem
my %CFG_GPPOS_OMAPL138LSPuc =
@@ -356,7 +368,7 @@ my %CFG_DSPCFG_DM6446GEMSHMEM =
'PHYID' => 'DM6446GEMSHMEM',
'PHYDESC' => 'Shared Memory Physical Interface',
'PHYTYPE' => 'SHMEM',
- 'GPPOS' => [\%CFG_GPPOS_MVL5U, \%CFG_GPPOS_MVL5G],
+ 'GPPOS' => [\%CFG_GPPOS_MVL5U, \%CFG_GPPOS_MVL5G, \%CFG_GPPOS_DM6446LSP],
'DSPOS' => [\%CFG_DSPOS_5XX, \%CFG_DSPOS_6XX],
# DSP defines
'DSPNAME' => 'DM6446GEM',
@@ -2994,6 +3006,9 @@ sub main {
if ($platform {'ID'} eq 'DA850') {
print "GPP side distribution file: \$DSPLINK" . $DIRSEP . "gpp" . $DIRSEP. "src" . $DIRSEP. "Rules.mk\n" ;
}
+ if ($platform {'ID'} eq 'DAVINCI') {
+ print "GPP side distribution file: \$DSPLINK" . $DIRSEP . "gpp" . $DIRSEP. "src" . $DIRSEP. "Rules.mk\n" ;
+ }
if ($platform {'ID'} eq 'DAVINCIHD') {
print "GPP side distribution file: \$DSPLINK" . $DIRSEP . "gpp" . $DIRSEP. "src" . $DIRSEP. "Rules.mk\n" ;
}
diff --git a/dsplink/gpp/src/DIRS b/dsplink/gpp/src/DIRS
index e82969c..05bad2b 100644
--- a/dsplink/gpp/src/DIRS
+++ b/dsplink/gpp/src/DIRS
@@ -63,6 +63,10 @@ ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
DIRS += \
api
else # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
+ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
+DIRS += \
+ api
+else # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
DIRS += \
api
@@ -77,6 +81,7 @@ DIRS += \
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
+endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
else # ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")
DIRS += \
diff --git a/dsplink/gpp/src/Makefile b/dsplink/gpp/src/Makefile
index 9e6bbb1..49c3b97 100644
--- a/dsplink/gpp/src/Makefile
+++ b/dsplink/gpp/src/Makefile
@@ -78,7 +78,13 @@ ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")
include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Rules.mk
include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_kbuild
else # else ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
- include Makefile_bld
+ ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_bld
+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Rules.mk
+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_kbuild
+ else # else ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
+ include Makefile_bld
+ endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
diff --git a/dsplink/gpp/src/Rules.mk b/dsplink/gpp/src/Rules.mk
index 658ee8a..5a6f52a 100644
--- a/dsplink/gpp/src/Rules.mk
+++ b/dsplink/gpp/src/Rules.mk
@@ -63,6 +63,11 @@ KERNEL_DIR := ${HOME}/da850/DaVinci-PSP-SDK-03.20.00.01/src/kernel/linux-03.2
TOOL_PATH := ${HOME}/git/arm-2008q3/bin
endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
+ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
+KERNEL_DIR := ${HOME}/linux-davinci
+TOOL_PATH := ${HOME}/toolchains/git/arm-2009q1-203/bin
+endif #ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
+
ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
KERNEL_DIR := ${HOME}/linux-davinci
TOOL_PATH := ${HOME}/toolchains/git/arm-2009q1-203/bin
diff --git a/dsplink/make/Linux/davinci_2.6.mk b/dsplink/make/Linux/davinci_2.6.mk
new file mode 100644
index 0000000..834fd74
--- /dev/null
+++ b/dsplink/make/Linux/davinci_2.6.mk
@@ -0,0 +1,211 @@
+# ============================================================================
+# @file davinci_2.6.mk
+#
+# @path $(DSPLINK)/make/Linux/
+#
+# @desc This makefile defines OS specific macros used by MAKE system for
+# the Montavista Pro 5.0 Linux distribution.
+#
+# @ver 1.64
+# ============================================================================
+# Copyright (C) 2002-2009, Texas Instruments Incorporated -
+# http://www.ti.com/
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# * Neither the name of Texas Instruments Incorporated nor the names of
+# its contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# ============================================================================
+
+
+ifndef DAVINCI_LINUX2_6_MK
+
+define DAVINCI_LINUX2_6_MK
+endef
+
+
+# ============================================================================
+# Let the make system know that a specific distribution for the GPP OS
+# is being used.
+# ============================================================================
+USE_DISTRIBUTION := 1
+
+
+# ============================================================================
+# Set the values of necessary variables to be used for the OS.
+# ============================================================================
+
+# ----------------------------------------------------------------------------
+# Base directory for the GPP OS
+# ----------------------------------------------------------------------------
+BASE_BUILDOS := ${HOME}/linux-davinci
+
+# ----------------------------------------------------------------------------
+# Base for toolchain
+# ----------------------------------------------------------------------------
+BASE_TOOLCHAIN := ${HOME}/toolchains/git/arm-2009q1-203
+
+# ----------------------------------------------------------------------------
+# Base for code generation tools - compiler, linker, archiver etc.
+# ----------------------------------------------------------------------------
+BASE_CGTOOLS := $(BASE_TOOLCHAIN)/bin
+
+# ----------------------------------------------------------------------------
+# Base directory for include files provided by GPP OS
+# ----------------------------------------------------------------------------
+BASE_OSINC := $(BASE_BUILDOS)/include
+
+OSINC_GENERIC := $(BASE_OSINC)
+OSINC_PLATFORM := $(BASE_TOOLCHAIN)/lib/gcc/arm-none-linux-gnueabi/4.2.3/include
+OSINC_TARGET := $(BASE_TOOLCHAIN)/arm-none-linux-gnueabi/libc/usr/include
+
+ifneq ("$(VARIANT)", "")
+OSINC_VARIANT := $(BASE_OSINC)
+endif
+
+
+# ----------------------------------------------------------------------------
+# Base directory for libraries provided by GPP OS
+# ----------------------------------------------------------------------------
+BASE_OSLIB := $(BASE_TOOLCHAIN)/lib
+
+OSLIB_GENERIC := $(BASE_OSLIB)
+OSLIB_PLATFORM := $(BASE_OSLIB)
+
+
+ifneq ("$(VARIANT)", "")
+OSLIB_VARIANT := $(BASE_OSLIB)
+endif
+
+
+# ============================================================================
+# COMPILER
+# ============================================================================
+
+# ----------------------------------------------------------------------------
+# Name of the compiler
+# ----------------------------------------------------------------------------
+COMPILER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-gcc
+LD := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-ld
+
+CROSS_COMPILE := arm-none-linux-gnueabi-
+export CROSS_COMPILE
+
+# ----------------------------------------------------------------------------
+# Command line switches used by the compiler
+#
+# CC_SW_DEF Command line defines
+# CC_SW_INC Search path for header files
+# CC_SW_OBJ Create object file
+# CC_SW_DEB Include debug information
+# ----------------------------------------------------------------------------
+CC_SW_DEF := -D
+CC_SW_INC := -I
+CC_SW_OBJ := -o
+CC_SW_DEB := -g
+
+# ----------------------------------------------------------------------------
+# Standard flags for the compiler
+# ----------------------------------------------------------------------------
+STD_USER_FLAGS := -Wall -c
+
+# ----------------------------------------------------------------------------
+# Flags for the compiler when building a library
+# ----------------------------------------------------------------------------
+EXE_CC_FLAGS :=
+
+# ----------------------------------------------------------------------------
+# Standard flags for the compiler when building an executable
+# ----------------------------------------------------------------------------
+DRV_CC_FLAGS := -nostdinc
+
+# ----------------------------------------------------------------------------
+# Flags for the compiler when building a driver
+# ----------------------------------------------------------------------------
+LIB_CC_FLAGS :=
+
+# ----------------------------------------------------------------------------
+# Standard definitions for the compiler
+# ----------------------------------------------------------------------------
+STD_CC_DEFNS := -D_REENTRANT
+
+# ============================================================================
+# ARCHIVER2 - This denotes the archiver.
+# ============================================================================
+ARCHIVER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-ar
+
+# ----------------------------------------------------------------------------
+# Standard flags for the archiver
+# ----------------------------------------------------------------------------
+STD_AR_FLAGS := -rs
+
+
+# ============================================================================
+# LINKER used for Library & Driver build
+# ============================================================================
+LINKER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-gcc
+
+# ----------------------------------------------------------------------------
+# Command line switches used by the linker
+#
+# LD_SW_LIB Search path for libraries
+# LD_SW_OUT Output filename
+# LD_SW_RELOC Generate relocateable output
+# ----------------------------------------------------------------------------
+LD_SW_LIB := -L
+LD_SW_OUT := -o
+LD_SW_RELOC := -r
+
+# ----------------------------------------------------------------------------
+# Flags for the LD when building an executable
+# ----------------------------------------------------------------------------
+STD_LD_FLAGS :=
+
+# ----------------------------------------------------------------------------
+# Standard flags for the LD
+# ----------------------------------------------------------------------------
+EXE_LD_FLAGS := -lpthread -lc
+
+# ----------------------------------------------------------------------------
+# Standard flags for the archiver
+# ----------------------------------------------------------------------------
+DRV_LD_FLAGS :=
+
+
+# ============================================================================
+# Post processing utilities for Linux 2.6
+# ============================================================================
+ifneq ($(CONFIG_MODVERSIONS),)
+CMD_MODPOST_FLAGS := -m -i
+else
+CMD_MODPOST_FLAGS := -i
+endif
+
+CMD_MODPOST := $(BASE_BUILDOS)/scripts/mod/modpost \
+ $(CMD_MODPOST_FLAGS) $(BASE_BUILDOS)/Module.symvers \
+ $(BASE_BUILDOS)/vmlinux
+
+
+endif # ifndef DAVINCI_LINUX2_6_MK
--
1.6.0.6
@@ -1,288 +0,0 @@
From fd5858c3a247bc61a4de3af1a5097cb05042cfa4 Mon Sep 17 00:00:00 2001
From: Roger Monk <r-monk@ti.com>
Date: Sun, 14 Mar 2010 22:13:42 +0000
Subject: [PATCH] omap1
Signed-off-by: Roger Monk <r-monk@ti.com>
---
dsplink/config/bin/dsplinkcfg.pl | 2 +-
dsplink/gpp/src/DIRS | 5 +
dsplink/gpp/src/Makefile | 8 ++-
dsplink/make/Linux/omapl1xx_arm.mk | 210 ++++++++++++++++++++++++++++++++++++
4 files changed, 223 insertions(+), 2 deletions(-)
create mode 100644 dsplink/make/Linux/omapl1xx_arm.mk
diff --git a/dsplink/config/bin/dsplinkcfg.pl b/dsplink/config/bin/dsplinkcfg.pl
index e83c133..8151945 100644
--- a/dsplink/config/bin/dsplinkcfg.pl
+++ b/dsplink/config/bin/dsplinkcfg.pl
@@ -523,7 +523,7 @@ my %CFG_DSPCFG_OMAPL1XXGEMSHMEM =
'PHYID' => 'OMAPL1XXGEMSHMEM',
'PHYDESC' => 'Shared Memory Physical Interface',
'PHYTYPE' => 'SHMEM',
- 'GPPOS' => [\%CFG_GPPOS_MVL5U, \%CFG_GPPOS_MVL5G],
+ 'GPPOS' => [\%CFG_GPPOS_MVL5U, \%CFG_GPPOS_MVL5G, \%CFG_GPPOS_ARM],
'DSPOS' => [\%CFG_DSPOS_5XX],
# DSP defines
'DSPNAME' => 'OMAPL1XXGEM',
diff --git a/dsplink/gpp/src/DIRS b/dsplink/gpp/src/DIRS
index 05bad2b..af48904 100644
--- a/dsplink/gpp/src/DIRS
+++ b/dsplink/gpp/src/DIRS
@@ -55,6 +55,10 @@ ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
DIRS += \
api
else # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
+ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL1XX")
+DIRS += \
+ api
+else # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL1XX")
ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
DIRS += \
api
@@ -83,6 +87,7 @@ endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL138")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCIHD")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
+endif
else # ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")
DIRS += \
arch \
diff --git a/dsplink/gpp/src/Makefile b/dsplink/gpp/src/Makefile
index 49c3b97..0afd988 100644
--- a/dsplink/gpp/src/Makefile
+++ b/dsplink/gpp/src/Makefile
@@ -83,7 +83,13 @@ ifeq ("$(TI_DSPLINK_GPPOS)", "Linux")
include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Rules.mk
include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_kbuild
else # else ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
- include Makefile_bld
+ ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAPL1XX")
+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_bld
+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Rules.mk
+ include $(DSPLINK)$(DIRSEP)gpp$(DIRSEP)src$(DIRSEP)Makefile_kbuild
+ else # else ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
+ include Makefile_bld
+ endif
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DAVINCI")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "OMAP3530")
endif # ifeq ("$(TI_DSPLINK_PLATFORM)", "DA850")
diff --git a/dsplink/make/Linux/omapl1xx_arm.mk b/dsplink/make/Linux/omapl1xx_arm.mk
new file mode 100644
index 0000000..3e42e87
--- /dev/null
+++ b/dsplink/make/Linux/omapl1xx_arm.mk
@@ -0,0 +1,210 @@
+# ============================================================================
+# @file omapl1xx_arm.mk
+#
+# @path $(DSPLINK)/make/Linux/
+#
+# @desc This makefile defines OS specific macros used by MAKE system for
+# the Montavista Pro 5.0 Linux distribution with mvlpro.
+#
+# @ver 1.64
+# ============================================================================
+# Copyright (C) 2002-2009, Texas Instruments Incorporated -
+# http://www.ti.com/
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+#
+# * Neither the name of Texas Instruments Incorporated nor the names of
+# its contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# ============================================================================
+
+ifndef OMAPL1XX_ARM_MK
+
+define OMAPL1XX_ARM_MK
+endef
+
+
+# ============================================================================
+# Let the make system know that a specific distribution for the GPP OS
+# is being used.
+# ============================================================================
+USE_DISTRIBUTION := 1
+
+
+# ============================================================================
+# Set the values of necessary variables to be used for the OS.
+# ============================================================================
+
+# ----------------------------------------------------------------------------
+# Base directory for the GPP OS
+# ----------------------------------------------------------------------------
+BASE_BUILDOS := ${HOME}/da850/DaVinci-PSP-SDK-03.20.00.01/src/kernel/linux-03.20.00.01
+
+# ----------------------------------------------------------------------------
+# Base for toolchain
+# ----------------------------------------------------------------------------
+BASE_TOOLCHAIN := ${HOME}/git/arm-2008q3
+
+# ----------------------------------------------------------------------------
+# Base for code generation tools - compiler, linker, archiver etc.
+# ----------------------------------------------------------------------------
+BASE_CGTOOLS := $(BASE_TOOLCHAIN)/bin
+
+# ----------------------------------------------------------------------------
+# Base directory for include files provided by GPP OS
+# ----------------------------------------------------------------------------
+BASE_OSINC := $(BASE_BUILDOS)/include
+
+OSINC_GENERIC := $(BASE_OSINC)
+OSINC_PLATFORM := $(BASE_TOOLCHAIN)/lib/gcc/arm-none-linux-gnueabi/4.3.2/include
+OSINC_TARGET := $(BASE_TOOLCHAIN)/arm-none-linux-gnueabi/libc/usr/include
+
+ifneq ("$(VARIANT)", "")
+OSINC_VARIANT := $(BASE_OSINC)
+endif
+
+
+# ----------------------------------------------------------------------------
+# Base directory for libraries provided by GPP OS
+# ----------------------------------------------------------------------------
+BASE_OSLIB := $(BASE_TOOLCHAIN)/lib
+
+OSLIB_GENERIC := $(BASE_OSLIB)
+OSLIB_PLATFORM := $(BASE_OSLIB)
+
+
+ifneq ("$(VARIANT)", "")
+OSLIB_VARIANT := $(BASE_OSLIB)
+endif
+
+
+# ============================================================================
+# COMPILER
+# ============================================================================
+
+# ----------------------------------------------------------------------------
+# Name of the compiler
+# ----------------------------------------------------------------------------
+COMPILER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-gcc
+LD := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-ld
+
+CROSS_COMPILE := arm-none-linux-gnueabi-
+export CROSS_COMPILE
+
+# ----------------------------------------------------------------------------
+# Command line switches used by the compiler
+#
+# CC_SW_DEF Command line defines
+# CC_SW_INC Search path for header files
+# CC_SW_OBJ Create object file
+# CC_SW_DEB Include debug information
+# ----------------------------------------------------------------------------
+CC_SW_DEF := -D
+CC_SW_INC := -I
+CC_SW_OBJ := -o
+CC_SW_DEB := -g
+
+# ----------------------------------------------------------------------------
+# Standard flags for the compiler
+# ----------------------------------------------------------------------------
+STD_USER_FLAGS := -Wall -c
+
+# ----------------------------------------------------------------------------
+# Standard flags for the compiler when building an executable
+# ----------------------------------------------------------------------------
+EXE_CC_FLAGS :=
+
+# ----------------------------------------------------------------------------
+# Flags for the compiler when building a driver
+# ----------------------------------------------------------------------------
+DRV_CC_FLAGS := -nostdinc
+
+# ----------------------------------------------------------------------------
+# Flags for the compiler when building a library
+# ----------------------------------------------------------------------------
+LIB_CC_FLAGS :=
+
+# ----------------------------------------------------------------------------
+# Standard definitions for the compiler
+# ----------------------------------------------------------------------------
+STD_CC_DEFNS := -D_REENTRANT
+
+# ============================================================================
+# ARCHIVER2 - This denotes the archiver.
+# ============================================================================
+ARCHIVER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-ar
+
+# ----------------------------------------------------------------------------
+# Standard flags for the archiver
+# ----------------------------------------------------------------------------
+STD_AR_FLAGS := -rs
+
+
+# ============================================================================
+# LINKER - The compiler is used for linking purpose as well.
+# ============================================================================
+LINKER := $(BASE_CGTOOLS)/arm-none-linux-gnueabi-gcc
+
+# ----------------------------------------------------------------------------
+# Command line switches used by the linker
+#
+# LD_SW_LIB Search path for libraries
+# LD_SW_OUT Output filename
+# LD_SW_RELOC Generate relocateable output
+# ----------------------------------------------------------------------------
+LD_SW_LIB := -L
+LD_SW_OUT := -o
+LD_SW_RELOC := -r
+
+# ----------------------------------------------------------------------------
+# Standard flags for the linker
+# ----------------------------------------------------------------------------
+STD_LD_FLAGS :=
+
+# ----------------------------------------------------------------------------
+# Flags for the linker when building an executable
+# ----------------------------------------------------------------------------
+EXE_LD_FLAGS := -lpthread -lc
+
+# ----------------------------------------------------------------------------
+# Flags for the linker when building a driver
+# ----------------------------------------------------------------------------
+DRV_LD_FLAGS :=
+
+
+# ============================================================================
+# Post processing utilities for Linux 2.6
+# ============================================================================
+ifneq ($(CONFIG_MODVERSIONS),)
+CMD_MODPOST_FLAGS := -m -i
+else
+CMD_MODPOST_FLAGS := -i
+endif
+
+CMD_MODPOST := $(BASE_BUILDOS)/scripts/mod/modpost \
+ $(CMD_MODPOST_FLAGS) $(BASE_BUILDOS)/Module.symvers \
+ $(BASE_BUILDOS)/vmlinux
+
+
+endif # ifndef OMAPL1XX_ARM_MK
--
1.6.0.6
@@ -1,335 +0,0 @@
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DA8XXGEM/da8xxgem_hal_pwr.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DA8XXGEM/da8xxgem_hal_pwr.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DA8XXGEM/da8xxgem_hal_pwr.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DA8XXGEM/da8xxgem_hal_pwr.c 2010-02-09 17:42:37.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OSAL Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <asm/page.h>
#include <asm/io.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DA8XXGEM/shmem/Linux/da8xxgem_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DA8XXGEM/shmem/Linux/da8xxgem_phy_shmem.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DA8XXGEM/shmem/Linux/da8xxgem_phy_shmem.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DA8XXGEM/shmem/Linux/da8xxgem_phy_shmem.c 2010-02-09 17:43:06.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6437/pci/dm6437_hal_pci_dma.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6437/pci/dm6437_hal_pci_dma.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6437/pci/dm6437_hal_pci_dma.c 2009-11-13 12:12:46.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6437/pci/dm6437_hal_pci_dma.c 2010-02-09 17:45:06.000000000 +0000
@@ -21,7 +21,12 @@
*/
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <asm/page.h>
#include <asm/io.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6437/pci/Linux/2.6.18/dm6437_phy_pci.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6437/pci/Linux/2.6.18/dm6437_phy_pci.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6437/pci/Linux/2.6.18/dm6437_phy_pci.c 2009-11-13 12:12:46.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6437/pci/Linux/2.6.18/dm6437_phy_pci.c 2010-02-09 17:44:49.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6446GEM/shmem/Linux/dm6446gem_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6446GEM/shmem/Linux/dm6446gem_phy_shmem.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6446GEM/shmem/Linux/dm6446gem_phy_shmem.c 2009-11-13 12:12:46.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6446GEM/shmem/Linux/dm6446gem_phy_shmem.c 2010-02-09 17:44:21.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6467GEM/shmem/Linux/dm6467gem_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6467GEM/shmem/Linux/dm6467gem_phy_shmem.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM6467GEM/shmem/Linux/dm6467gem_phy_shmem.c 2009-11-13 12:12:46.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM6467GEM/shmem/Linux/dm6467gem_phy_shmem.c 2010-02-09 17:41:46.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM648/pci/dm648_hal_pci_dma.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM648/pci/dm648_hal_pci_dma.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM648/pci/dm648_hal_pci_dma.c 2009-11-13 12:12:46.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM648/pci/dm648_hal_pci_dma.c 2010-02-09 17:42:02.000000000 +0000
@@ -20,7 +20,12 @@
* ============================================================================
*/
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <asm/page.h>
#include <asm/io.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/DM648/pci/Linux/2.6.18/dm648_phy_pci.c dsplink_linux_1_64b/dsplink/gpp/src/arch/DM648/pci/Linux/2.6.18/dm648_phy_pci.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/DM648/pci/Linux/2.6.18/dm648_phy_pci.c 2009-11-13 12:12:46.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/DM648/pci/Linux/2.6.18/dm648_phy_pci.c 2010-02-09 17:42:21.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/OMAP2530/shmem/Linux/omap2530_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/OMAP2530/shmem/Linux/omap2530_phy_shmem.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/OMAP2530/shmem/Linux/omap2530_phy_shmem.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/OMAP2530/shmem/Linux/omap2530_phy_shmem.c 2010-02-09 17:43:29.000000000 +0000
@@ -25,7 +25,12 @@
/* ----------------------------------- OS Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/OMAP3530/shmem/Linux/omap3530_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/OMAP3530/shmem/Linux/omap3530_phy_shmem.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/OMAP3530/shmem/Linux/omap3530_phy_shmem.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/OMAP3530/shmem/Linux/omap3530_phy_shmem.c 2010-02-09 17:43:50.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/arch/TNETV107XGEM/shmem/Linux/tnetv107xgem_phy_shmem.c dsplink_linux_1_64b/dsplink/gpp/src/arch/TNETV107XGEM/shmem/Linux/tnetv107xgem_phy_shmem.c
--- dsplink_linux_1_64a/dsplink/gpp/src/arch/TNETV107XGEM/shmem/Linux/tnetv107xgem_phy_shmem.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/arch/TNETV107XGEM/shmem/Linux/tnetv107xgem_phy_shmem.c 2010-02-09 17:44:06.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/dpc.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/dpc.c
--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/dpc.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/dpc.c 2010-02-09 17:47:25.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Specific Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/spinlock.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/isr.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/isr.c
--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/isr.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/isr.c 2010-02-09 17:46:54.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Specific Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/version.h>
#include <linux/spinlock.h>
#include <linux/sched.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/kfiledef.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/kfiledef.c
--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/kfiledef.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/kfiledef.c 2010-02-09 17:46:39.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Specific Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/spinlock.h>
#include <linux/kernel.h>
#include <linux/mm.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/mem.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/mem.c
--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/mem.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/mem.c 2010-02-09 17:46:25.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Specific Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/spinlock.h>
#include <linux/sched.h>
#include <linux/types.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/notify_knl.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/notify_knl.c
--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/notify_knl.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/notify_knl.c 2010-02-09 17:47:12.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Specific Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/spinlock.h>
#include <linux/signal.h>
#include <linux/kernel.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/sync.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/sync.c
--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/2.6.18/sync.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/2.6.18/sync.c 2010-02-09 17:47:39.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Specific Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/spinlock.h>
#include <linux/timer.h>
#include <linux/sched.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/prcs.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/prcs.c
--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/prcs.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/prcs.c 2010-02-09 17:45:44.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Specific Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/spinlock.h>
#include <linux/module.h>
#include <linux/mm.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/print.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/print.c
--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/print.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/print.c 2010-02-09 17:45:30.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Specific Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/spinlock.h>
#include <stdarg.h>
#include <linux/types.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/user.c dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/user.c
--- dsplink_linux_1_64a/dsplink/gpp/src/osal/Linux/user.c 2009-11-13 12:12:47.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/osal/Linux/user.c 2010-02-09 17:46:07.000000000 +0000
@@ -22,7 +22,12 @@
/* ----------------------------------- OS Specific Headers */
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/spinlock.h>
#include <linux/timer.h>
#include <linux/sched.h>
diff -uNr dsplink_linux_1_64a/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c dsplink_linux_1_64b/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c
--- dsplink_linux_1_64a/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c 2009-11-13 12:12:48.000000000 +0000
+++ dsplink_linux_1_64b/dsplink/gpp/src/pmgr/Linux/2.6.18/drv_pmgr.c 2010-02-09 17:40:59.000000000 +0000
@@ -33,7 +33,11 @@
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
#include <linux/device.h>
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+#include <generated/autoconf.h>
+#else
#include <linux/autoconf.h>
+#endif
#include <linux/spinlock.h>
#include <linux/module.h>
#include <linux/init.h>
@@ -1,16 +0,0 @@
Index: dsplink_linux_1_65_00_03/dsplink/gpp/src/osal/Linux/2.6.18/isr.c
===================================================================
--- dsplink_linux_1_65_00_03.orig/dsplink/gpp/src/osal/Linux/2.6.18/isr.c
+++ dsplink_linux_1_65_00_03/dsplink/gpp/src/osal/Linux/2.6.18/isr.c
@@ -286,7 +286,11 @@ ISR_Create (IN IsrProc fnIS
if (DSP_SUCCEEDED (status)) {
(*isrObj)->signature = SIGN_ISR ;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)
(*isrObj)->irq = intObj->intId ;
+#else
+ (*isrObj)->irq = intObj->intId + NR_IRQS ;
+#endif
(*isrObj)->enabled = FALSE ;
(*isrObj)->dspId = intObj->dspId ;
(*isrObj)->checkFunc = intObj->checkFunc ;
@@ -1,25 +0,0 @@
#
# Default Memory Map - for OMAP3530 dsplink examples
#
# Start Addr Size Description
# -------------------------------------------
# 0x80000000 126 MB Linux
# 0x87E00000 2 MB DSPLINK (MEM) + DDR + DSPLINK (RESET)
# sanity check to verify that we're using the right mem=xxM (126M in this case)
awk '/MemTotal:/ {
mem=$2
if (mem > 126 * 1024)
print "Warning! You need to use mem=126M or less on the kernel cmdline"
printf "You have %dkB total memory for Linux\n", mem
}' /proc/meminfo
# insert DSP/BIOS Link driver
#
modprobe dsplinkk
# make /dev/dsplink
#rm -f /dev/dsplink
#mknod /dev/dsplink c `awk "\\$2==\"dsplink\" {print \\$1}" /proc/devices` 0
@@ -1,25 +0,0 @@
#! /bin/sh
echo "Running Loop Sample App"
./loopgpp loop.out 1024 2000 0
echo "Running Message Sample App"
./messagegpp message.out 10000 0
echo "Running Message Multi Sample App"
./messagemultigpp messagemulti.out 128 1 0
echo "Running MultiProcessor List Sample App"
./mplistgpp mplist.out 128 128 0
echo "Running MultiProcessorCriticalSection Transfer Sample App"
./mpcsxfergpp mpcsxfer.out 128 1000 0
echo "Running Ringio Sample App"
./ringiogpp ringio.out 2048 128 0
echo "Running Scale Sample App"
./scalegpp scale.out 128 500 0
#echo "Running Read/Write Sample App"
#./readwritegpp readwrite.out
@@ -1,5 +0,0 @@
# Unload modules - DSPLINK - OMAP3530
# remove DSP/BIOS Link driver
rmmod dsplinkk
#rm -f /dev/dsplink
@@ -1,18 +0,0 @@
require ti-dsplink.inc
PE = "1"
PV = "1_65_00_03"
PV_dot = "1.65.00.03"
PV_major = "1_65"
PV_DL_PATH = "DSPLink/${PV_major}/${PV}/${PV_dot}"
SRC_URI += "file://dsplink-BKL-fix.patch \
file://0001-remove-check-for-make-version-3.85-works-fine.patch \
file://dsplink_1_65_kernel_3_7_0_fix-irq-mismatch.patch \
"
SRC_URI[dsplinktarball.md5sum] = "1bda596b631bd2f517edc70f6be4f2ca"
SRC_URI[dsplinktarball.sha256sum] = "4b1bda89bd8465b887f5bcdf7b95018bc1d1f8968c0c44f8cbad2a9e1c52bcb7"
INSANE_SKIP_${PN} = "installed-vs-shipped"
@@ -1,120 +0,0 @@
DESCRIPTION = "TI Local Power Manager (LPM)"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/lpm"
SECTION = "devel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://gpl_2.0.txt;md5=ebb5c50ab7cab4baeffba14977030c07"
# TODO : Hardcoded path to evm3530 - need to fix when adding omap24xx/dm6446 (other lpm targets)
require ../includes/ti-paths.inc
require ../includes/ti-staging.inc
PROVIDES = "ti-lpm-module"
PROVIDES += "ti-lpm-utils"
# This package builds a kernel module, use kernel PR as base and append a local version
PR = "${MACHINE_KERNEL_PR}"
PR_append = "e"
S = "${WORKDIR}/local_power_manager_linux_${PV}"
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/lpm/${PV}/exports/local_power_manager_linux_${PV}.tar.gz;name=lpmtarball"
DEPENDS = "ti-dsplink ti-xdctools-native"
DEPENDS += "virtual/kernel"
# SOC_FAMILY configuration
LPMDSPPOWERSOC_omap3 = "omap3530"
LPMDSPPOWERSOC_dm6446 = "dm6446"
LPMDSPPOWERSOC ?= "UNDEFINED_LPMDSPPOWERSOC"
XDC_PLATFORM_dm6446 = "ti.platforms.evmDM6446"
XDC_PLATFORM_omap3 = "ti.platforms.evm3530"
XDC_PLATFORM ?= "UNDEFINED_XDC_PLATFORM"
do_configure () {
# Generate a config.bld for XDC
cat > ${S}/config.bld <<EOF
/* Generated by ti-local-power-manager.inc OE recipe */
var Build = xdc.useModule('xdc.bld.BuildEnvironment');
var GCArmv5T = xdc.useModule('gnu.targets.arm.GCArmv5T');
GCArmv5T.LONGNAME = "${TARGET_PREFIX}gcc";
GCArmv5T.rootDir = "${TOOLCHAIN_PATH}";
GCArmv5T.ccOpts.prefix += " -Wall -fno-strict-aliasing ";
GCArmv5T.lnkOpts.suffix = GCArmv5T.lnkOpts.suffix.replace("-lstdc++", "");
GCArmv5T.lnkOpts.suffix += " -lpthread ";
GCArmv5T.platform = null;
GCArmv5T.platforms = [
"${XDC_PLATFORM}"
];
/* remove profiles we don't use */
delete GCArmv5T.profiles["coverage"];
delete GCArmv5T.profiles["profile"];
Build.targets.\$add(GCArmv5T);
EOF
}
do_prepsources () {
# Prepare the tree for rebuiling - generate makefiles and clean
XDCPATH=${S} ${XDC_INSTALL_DIR}/xdc .make -PR .
XDCPATH=${S} ${XDC_INSTALL_DIR}/xdc clean -PR .
}
addtask prepsources after do_configure before do_compile
do_compile () {
# Build the LPM kernel module
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
cd ${S}/packages/ti/bios/power/modules/${LPMDSPPOWERSOC}/lpm
make \
DSPLINK_REPO="${LINK_INSTALL_DIR}" \
LINUXKERNEL_INSTALL_DIR="${STAGING_KERNEL_DIR}" \
MVTOOL_PREFIX="${TARGET_PREFIX}" \
clean default
# Build the user space library
# TODO
# Build the utilities (lpmON/OFF)
cd ${S}
XDCPATH=${S} ${XDC_INSTALL_DIR}/xdc -PR .
}
KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
do_install () {
# Install the kernel module
install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
install -m 0755 ${S}/packages/ti/bios/power/modules/${LPMDSPPOWERSOC}/lpm/*.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
# Install the Utilities
install -d ${D}/${installdir}/ti-lpm-utils
install -m 0755 ${S}/packages/ti/bios/power/utils/bin/$(echo ${XDC_PLATFORM} | tr . _)/linux/release/* ${D}/${installdir}/ti-lpm-utils
# Install/Stage the Source Tree
install -d ${D}${LPM_INSTALL_DIR_RECIPE}
cp -pPrf ${S}/* ${D}${LPM_INSTALL_DIR_RECIPE}
}
PACKAGE_ARCH = "${MACHINE_ARCH}"
PACKAGES += "ti-lpm-module"
FILES_ti-lpm-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/*lpm*ko"
RDEPENDS_ti-lpm-module += "ti-dsplink-module"
PACKAGES += "ti-lpm-utils"
RDEPENDS_ti-lpm-utils += "ti-lpm-module"
FILES_ti-lpm-utils = "${installdir}/ti-lpm-utils/*"
INSANE_SKIP_ti-lpm-utils = "1"
@@ -1,24 +0,0 @@
diff -uNr local_power_manager_linux_1_24_01_orig/packages/ti/bios/power/modules/dm6446/lpm/Makefile local_power_manager_linux_1_24_01/packages/ti/bios/power/modules/dm6446/lpm/Makefile
--- local_power_manager_linux_1_24_01_orig/packages/ti/bios/power/modules/dm6446/lpm/Makefile 2009-07-22 23:10:04.000000000 -0500
+++ local_power_manager_linux_1_24_01/packages/ti/bios/power/modules/dm6446/lpm/Makefile 2010-04-16 15:26:14.000000000 -0500
@@ -54,7 +54,7 @@
endif
MAKE_OPTS = ARCH=arm CROSS_COMPILE=$(MVTOOL_PREFIX)
-CFLAGS = -DUSE_UDEV -DOS_LINUX -DLINUX_KERNEL \
+CFLAGS = -DUSE_UDEV -DOS_LINUX -DLINUX_KERNEL -DOPT="" \
$(LINK_DEFS) $(LINK_INCS) $(LINK_INCS_INTERNAL)
# Invoke the kernel build system
diff -uNr local_power_manager_linux_1_24_01_orig/packages/ti/bios/power/modules/omap3530/lpm/Makefile local_power_manager_linux_1_24_01/packages/ti/bios/power/modules/omap3530/lpm/Makefile
--- local_power_manager_linux_1_24_01_orig/packages/ti/bios/power/modules/omap3530/lpm/Makefile 2009-07-22 23:10:05.000000000 -0500
+++ local_power_manager_linux_1_24_01/packages/ti/bios/power/modules/omap3530/lpm/Makefile 2010-04-16 15:26:38.000000000 -0500
@@ -54,7 +54,7 @@
endif
MAKE_OPTS = ARCH=arm CROSS_COMPILE=$(MVTOOL_PREFIX)
-CFLAGS = -DUSE_UDEV -DOS_LINUX -DLINUX_KERNEL \
+CFLAGS = -DUSE_UDEV -DOS_LINUX -DLINUX_KERNEL -DOPT="" \
$(LINK_DEFS) $(LINK_INCS) $(LINK_INCS_INTERNAL)
# Invoke the kernel build system
@@ -1,72 +0,0 @@
From b7e83000f316f5f109b9237fde4d1c576534aa1a Mon Sep 17 00:00:00 2001
From: Koen Kooi <koen@dominion.thruhere.net>
Date: Tue, 4 Jan 2011 14:21:02 +0100
Subject: [PATCH] Fix build with 2.6.37rcX
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
.../bios/power/modules/omap3530/lpm/lpm_driver.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/packages/ti/bios/power/modules/omap3530/lpm/lpm_driver.c b/packages/ti/bios/power/modules/omap3530/lpm/lpm_driver.c
index fa22ea3..4663fc9 100644
--- a/packages/ti/bios/power/modules/omap3530/lpm/lpm_driver.c
+++ b/packages/ti/bios/power/modules/omap3530/lpm/lpm_driver.c
@@ -40,6 +40,7 @@
#include <asm/semaphore.h>
#endif
#include <linux/io.h>
+#include <linux/slab.h>
#include "lpm_driver.h"
#include "lpm_dev.h"
@@ -95,7 +96,7 @@ static int enablevicp = -1;
module_param(enablevicp, int, S_IRUGO);
/* forward declaration of system calls (used by Linux driver) */
-static int lpm_ioctl (struct inode *inode, struct file *filp,
+static long lpm_ioctl (struct file *filp,
unsigned int cmd, unsigned long args);
static int lpm_open (struct inode *inode, struct file *filp);
static int lpm_release (struct inode *inode, struct file *filp);
@@ -111,7 +112,7 @@ static void lpm_os_trace (char *fmt, ...);
static struct file_operations lpm_fops = {
.owner = THIS_MODULE,
- .ioctl = lpm_ioctl,
+ .unlocked_ioctl = lpm_ioctl,
.open = lpm_open,
.release = lpm_release,
};
@@ -244,7 +245,11 @@ static int __init lpm_init(void)
lpm->inst[i].major = MAJOR(lpm->first);
lpm->inst[i].minor = MINOR(lpm->first) + i;
INIT_LIST_HEAD(&lpm->inst[i].clients);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)
init_MUTEX(&lpm->inst[i].sem);
+#else
+ sema_init(&lpm->inst[i].sem,1);
+#endif
init_completion(&lpm->inst[i].event);
lpm_devAttrs.os_instance = (void *)&lpm->inst[i];
LPM_init(i, &lpm->inst[i].lpm, &lpm_devAttrs);
@@ -320,7 +325,7 @@ fail_02:
/*
* ======== lpm_ioctl ========
*/
-static int lpm_ioctl(struct inode *inode, struct file *filp,
+static long lpm_ioctl(struct file *filp,
unsigned int cmd, unsigned long args)
{
struct LPM_Dev *dev;
@@ -328,6 +333,7 @@ static int lpm_ioctl(struct inode *inode, struct file *filp,
LPM_Client *client;
LPM_Status lpmStat = LPM_SOK;
int stat = 0;
+ struct inode *inode = filp->f_dentry->d_inode;
TRACE(KERN_ALERT "--> lpm_ioctl, cmd: 0x%X\n", cmd);
--
1.6.6.1
@@ -1,11 +0,0 @@
require ti-local-power-manager.inc
PV = "1_24_02_09"
PE = "1"
SRC_URI += "file://lpm-BKL-fix.patch"
SRC_URI[lpmtarball.md5sum] = "3d05453df26dfc811de04839d74c2f2b"
SRC_URI[lpmtarball.sha256sum] = "7335959a6217df17289f81839e6c6948f31cc0797ebc5389edef7190ed3ea589"
INSANE_SKIP_${PN} = "installed-vs-shipped"
-225
View File
@@ -1,225 +0,0 @@
DESCRIPTION = "SYSLINK Inter-Processor Communications (IPC) for TI ARM/DSP processors"
HOMEPAGE = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/syslink/index.html"
SECTION = "devel"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://docs/bsd.pdf;md5=9f2edd962cd129f8c24e9ef1bd641029"
# TODO :: multi-machine, add m3 build as well?
# TODO :: proper staging?
# TODO :: kernel module examples?
# TODO :: smarter handling of config.bld
# TODO :: review XDC parallel make - why not happening automatically?
# TODO :: smarter suffix management
require ../includes/ti-paths.inc
require ../includes/ti-staging.inc
PROVIDES = "ti-syslink-module"
PROVIDES += "ti-syslink-examples"
# This package builds a kernel module, use kernel PR as base and append a local version
PR = "${MACHINE_KERNEL_PR}"
PR_append = "a"
PVExtra = ""
inherit module pkgconfig
S = "${WORKDIR}/syslink_${PV}${PVExtra}"
SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/syslink/${PV}${PVExtra}/exports/syslink_${PV}${PVExtra}.tar.gz;name=syslinktarball \
file://syslink.pc \
"
DEPENDS = "ti-sysbios ti-xdctools-native ti-cgt6x ti-ipc ti-cgt470"
DEPENDS += "virtual/kernel"
#common frameq gateMP heapBufMP heapMemMP knlNotify listMP messageQ notify ringIO ringIO_gpp sharedRegion slaveLoader tilerDaemon
SYSLINKHLOSSAMPLES = "knlnotify slaveLoader frameq notify"
#SYSLINKRTOSSAMPLES = "frameq gateMP heapBufMP heapMemMP listMP messageQ notify ringIO ringIO_gpp sharedRegion"
# SOC_FAMILY configuration
SYSLINKPLATFORM_omap3 = "OMAP3530"
SYSLINKPLATFORM_omapl137 = "OMAPL1XX"
SYSLINKPLATFORM_omapl138 = "OMAPL1XX"
SYSLINKPLATFORM_ti816x = "TI81XX"
SYSLINKPLATFORM_ti814x = "TI81XX"
SYSLINKPLATFORM ?= "<UNDEFINED_SYSLINKPLATFORM>"
SYSLINKVARIANT_omap3 = "OMAP3530"
SYSLINKVARIANT_omapl137 = "OMAPL1XX"
SYSLINKVARIANT_omapl138 = "OMAPL1XX"
SYSLINKVARIANT_ti816x = "TI816X"
SYSLINKVARIANT_ti814x = "TI814X"
SYSLINKVARIANT ?= "<UNDEFINED_SYSLINKVARIANT>"
# COFF/ELF config - omap3 can be coff/elf, omapl only coff, ti816x and ti814x only elf
# this really needs to be a list... in the case of ELF/COFF (and this could use DSPSUFFIX?)
SYSLINKSUFFIX_omap3 = "x64P"
SYSLINKSUFFIX_omapl137 = "x674"
SYSLINKSUFFIX_omapl138 = "x674"
SYSLINKSUFFIX_ti816x = "xe674"
SYSLINKSUFFIX_ti814x = "xe674"
SYSLINKSUFFIX ?= "<UNDEFINED_SYSLINKSUFFIX>"
SYSLINKLOADER_omap3 = "COFF"
SYSLINKLOADER_omapl137 = "COFF"
SYSLINKLOADER_omapl138 = "COFF"
SYSLINKLOADER_ti816x = "ELF"
SYSLINKLOADER_ti814x = "ELF"
SYSLINKLOADER ?= "<UNDEFINED_SYSLINKLOADER>"
# Do we really need to configure this? - configured already in config.bld
XDCTARGETS_omap3 = "ti.targets.C64P"
XDCTARGETS_omapl137 = "ti.targets.C674"
XDCTARGETS_omapl138 = "ti.targets.C674"
# for ti816x and ti814x, we should later also build for ti.targets.arm.elf.M3
XDCTARGETS_ti816x = "ti.targets.elf.C674 ti.targets.arm.elf.M3"
XDCTARGETS_ti814x = "ti.targets.elf.C674 ti.targets.arm.elf.M3"
XDCTARGETS ?= "<UNDEFINED_XDCTARGETS>"
export XDCTARGETS
# Exported Variable needed by build
export SYSLINK_ROOT = "${S}/packages/"
export XDCPATH = "${IPC_INSTALL_DIR}/packages;${SYSBIOS_INSTALL_DIR}/packages"
do_configure() {
sed -i -e s:@VERSION@:${PV}:g ${WORKDIR}/syslink.pc
cp ${WORKDIR}/syslink.pc ${S}
}
do_prepsources () {
# Prepare the tree for rebuiling - clean and generate interfaces
cd ${SYSLINK_ROOT}/ti/syslink
${XDC_INSTALL_DIR}/xdc --jobs=${BB_NUMBER_THREADS} .make -PR .
${XDC_INSTALL_DIR}/xdc --jobs=${BB_NUMBER_THREADS} clean -PR .
${XDC_INSTALL_DIR}/xdc --jobs=${BB_NUMBER_THREADS} .interfaces -PR .
}
addtask prepsources after do_configure before do_compile
do_compile() {
# TODO :: KERNEL_CC, should use for kernel module build?
# TODO :: Check the 'unset's
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
do_make_scripts
# Build the gpp (hlos) kernel space
cd ${SYSLINK_ROOT}/ti/syslink/utils/hlos/knl/Linux && make \
ARCH="${TARGET_ARCH}" \
CROSS_COMPILE="${TARGET_PREFIX}" \
SYSLINK_PLATFORM="${SYSLINKPLATFORM}" \
SYSLINK_VARIANT="${SYSLINKVARIANT}" \
SYSLINK_LOADER="${SYSLINKLOADER}" \
SYSLINK_PKGPATH="${IPC_INSTALL_DIR}/packages" \
KDIR="${STAGING_KERNEL_DIR}"
# # Build the gpp (hlos) kernel space samples.
# for sample in ${SYSLINKHLOSSAMPLES}; do
# cd ${SYSLINK_ROOT}/ti/syslink/samples/hlos/$sample/knl/Linux && make \
# ARCH="${TARGET_ARCH}" \
# CROSS_COMPILE="${TARGET_PREFIX}" \
# SYSLINK_PLATFORM="${SYSLINKPLATFORM}" \
# SYSLINK_VARIANT="${SYSLINKVARIANT}" \
# SYSLINK_LOADER="${SYSLINKLOADER}" \
# SYSLINK_PKGPATH="${IPC_INSTALL_DIR}/packages" \
# SYSLINK_SDK=EZSDK \
# KDIR="${STAGING_KERNEL_DIR}"
# done
# Build the gpp (hlos) user space
cd ${SYSLINK_ROOT}/ti/syslink/utils/hlos/usr/Linux && make \
ARCH="${TARGET_ARCH}" \
CROSS_COMPILE="${TARGET_PREFIX}" \
TOOLCHAIN_PREFIX="${TOOLCHAIN_PATH}/${TARGET_PREFIX}" \
SYSLINK_PLATFORM="${SYSLINKPLATFORM}" \
SYSLINK_VARIANT="${SYSLINKVARIANT}" \
SYSLINK_LOADER="${SYSLINKLOADER}" \
SYSLINK_PKGPATH="${IPC_INSTALL_DIR}/packages"
# Build the gpp (hlos) user space samples
# First build the common lib for samples.
cd ${SYSLINK_ROOT}/ti/syslink/samples/hlos/common/usr/Linux && make \
ARCH="${TARGET_ARCH}" \
CROSS_COMPILE="${TARGET_PREFIX}" \
TOOLCHAIN_PREFIX="${TOOLCHAIN_PATH}/${TARGET_PREFIX}" \
SYSLINK_PLATFORM="${SYSLINKPLATFORM}" \
SYSLINK_VARIANT="${SYSLINKVARIANT}" \
SYSLINK_LOADER="${SYSLINKLOADER}" \
SYSLINK_SDK=EZSDK \
SYSLINK_PKGPATH="${IPC_INSTALL_DIR}/packages"
for sample in ${SYSLINKHLOSSAMPLES}; do
cd ${SYSLINK_ROOT}/ti/syslink/samples/hlos/$sample/usr/Linux && make \
ARCH="${TARGET_ARCH}" \
CROSS_COMPILE="${TARGET_PREFIX}" \
TOOLCHAIN_PREFIX="${TOOLCHAIN_PATH}/${TARGET_PREFIX}" \
SYSLINK_PLATFORM="${SYSLINKPLATFORM}" \
SYSLINK_VARIANT="${SYSLINKVARIANT}" \
SYSLINK_LOADER="${SYSLINKLOADER}" \
SYSLINK_SDK=EZSDK \
SYSLINK_PKGPATH="${IPC_INSTALL_DIR}/packages"
done
# Build the dsp/arm (rtos) code (system and samples)
# cd ${SYSLINK_ROOT}/ti/syslink && \
# ${XDC_INSTALL_DIR}/xdc --jobs=${BB_NUMBER_THREADS} -PR .
export XDCOPTIONS=v
cd ${SYSLINK_ROOT}/ti/syslink && \
${XDC_INSTALL_DIR}/xdc -P \
`${XDC_INSTALL_DIR}/bin/xdcpkg ${SYSLINK_ROOT}/ti/syslink | grep -v samples`
export XDCARGS="profile=debug"
cd ${SYSLINK_ROOT}/ti/syslink && \
${XDC_INSTALL_DIR}/xdc --jobs=${BB_NUMBER_THREADS} -P \
`${XDC_INSTALL_DIR}/bin/xdcpkg ${SYSLINK_ROOT}/ti/syslink | grep samples`
}
KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
do_install () {
# Install the hlos kernel module
install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp
install -m 0755 ${SYSLINK_ROOT}/ti/syslink/bin/${SYSLINKVARIANT}/syslink.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/
# Install the hlos example kernel modules and apps
install -d ${D}/${installdir}/ti-syslink-examples
install -m 0755 ${SYSLINK_ROOT}/ti/syslink/bin/${SYSLINKVARIANT}/samples/* ${D}/${installdir}/ti-syslink-examples/
# Install the rtos example apps
install -d ${D}/${installdir}/ti-syslink-examples/dsp
cd ${SYSLINK_ROOT}/ti/syslink/samples/rtos
for i in $(find . -name "*.${SYSLINKSUFFIX}" | grep "${SOC_FAMILY}"); do
install ${i} ${D}/${installdir}/ti-syslink-examples/dsp/
done
# TODO :: Fixup - library/headers installation - this shouldn't go into the examples directory....
# Needs proper staging
# Install the library in the filesystem
# install -d ${D}/${installdir}/ti-syslink-examples
# install -m 0755 ${SYSLINK_ROOT}/ti/syslink/lib/syslink.a ${D}/${installdir}/ti-syslink-examples/
# Install/Stage the Source Tree
install -d ${D}${SYSLINK_INSTALL_DIR_RECIPE}
cp -pPrf ${S}/* ${D}${SYSLINK_INSTALL_DIR_RECIPE}
install -d ${D}/${libdir}/pkgconfig
install ${S}/syslink.pc ${D}/${libdir}/pkgconfig/
}
PACKAGES =+ "ti-syslink-module"
FILES_ti-syslink-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/syslink.ko"
PACKAGES =+ "ti-syslink-examples"
RRECOMMENDS_ti-syslink-examples_append = " ti-syslink-module"
FILES_ti-syslink-examples = "${installdir}/ti-syslink-examples/*"
INSANE_SKIP_ti-syslink-examples = "1"
FILES_${PN}-dev = "${libdir}/*"
-10
View File
@@ -1,10 +0,0 @@
prefix=/../..//syslink_@VERSION@
libdir=${prefix}/ti/syslink/lib
includedir=${prefix}/ti/syslink
Name: TI Syslink
Description: Syslink ARM-DSP IPC (Inter Processor Communication)
Version: @VERSION@
Requires: ipc
Libs: ${libdir}/syslink.a_release
Cflags: -I${includedir} -I${includedir}/inc -I${includedir}/utils
@@ -1,8 +0,0 @@
require ti-syslink.inc
PV = "2_00_00_78"
PVwithdots = "2.00.00.78"
SRC_URI[syslinktarball.md5sum] = "df7c92cd2cca38fdb38e59e4175aba61"
SRC_URI[syslinktarball.sha256sum] = "3409d080b08ec1d0bd24a715dbec783f1d52020e452485c165ad64e121548ebc"