From 649b44a943f5a2cca45b346b903e6cdee7d5ed21 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 12 Jun 2009 13:03:42 +0200 Subject: dsplink: move dir to 'dvsdk' to make merging the TI OE trees easier --- recipes/dsplink/dsplink.inc | 112 ------ recipes/dsplink/files/Makefile-dsplink-dsp | 59 --- recipes/dsplink/files/Makefile-dsplink-gpp | 120 ------- ...mem-class-device-27-and-sched-include-fix.patch | 23 -- .../dsplink/files/dmai-built-with-angstrom.patch | 48 --- .../files/dmai-do-not-panic-on-mixer-failure.patch | 31 -- .../dsplink/files/dmai-support-32bit-align.patch | 17 - recipes/dsplink/files/dmai-update-cpu-name.patch | 16 - recipes/dsplink/files/dmai-update-fb-display.patch | 77 ---- .../dsplink/files/dmai-update-v4l2-display.patch | 127 ------- recipes/dsplink/files/dsplink-128M.patch | 104 ------ .../dsplink-add-class-device-create-support.patch | 55 --- recipes/dsplink/files/dsplink-semaphore-27.patch | 36 -- .../files/loadmodules-ti-codec-engine-apps.sh | 37 -- recipes/dsplink/files/loadmodules-ti-dmai-apps.sh | 37 -- .../dsplink/files/loadmodules-ti-dsplink-apps.sh | 25 -- ...m-device-create-and-semaphore-include-fix.patch | 121 ------- .../files/lpm-make-symbol-warnings-fix.patch | 117 ------ .../files/sdma-class-device-and-includes-fix.patch | 59 --- .../files/unloadmodules-ti-codec-engine-apps.sh | 12 - .../dsplink/files/unloadmodules-ti-dmai-apps.sh | 12 - .../dsplink/files/unloadmodules-ti-dsplink-apps.sh | 5 - recipes/dsplink/gstreamer-ti/gst-buffsize.diff | 113 ------ recipes/dsplink/gstreamer-ti_svn.bb | 57 --- recipes/dsplink/readme.txt | 10 - recipes/dsplink/ti-codec-combos_3.16.bb | 91 ----- recipes/dsplink/ti-codec-engine_2.21.bb | 278 --------------- recipes/dsplink/ti-codec-engine_2.23.bb | 394 --------------------- recipes/dsplink/ti-dmai_svn.bb | 87 ----- recipes/dsplink/ti-paths.inc | 110 ------ recipes/dvsdk/dsplink.inc | 112 ++++++ recipes/dvsdk/files/Makefile-dsplink-dsp | 59 +++ recipes/dvsdk/files/Makefile-dsplink-gpp | 120 +++++++ ...mem-class-device-27-and-sched-include-fix.patch | 23 ++ recipes/dvsdk/files/dmai-built-with-angstrom.patch | 48 +++ .../files/dmai-do-not-panic-on-mixer-failure.patch | 31 ++ recipes/dvsdk/files/dmai-support-32bit-align.patch | 17 + recipes/dvsdk/files/dmai-update-cpu-name.patch | 16 + recipes/dvsdk/files/dmai-update-fb-display.patch | 77 ++++ recipes/dvsdk/files/dmai-update-v4l2-display.patch | 127 +++++++ recipes/dvsdk/files/dsplink-128M.patch | 104 ++++++ .../dsplink-add-class-device-create-support.patch | 55 +++ recipes/dvsdk/files/dsplink-semaphore-27.patch | 36 ++ .../files/loadmodules-ti-codec-engine-apps.sh | 37 ++ recipes/dvsdk/files/loadmodules-ti-dmai-apps.sh | 37 ++ recipes/dvsdk/files/loadmodules-ti-dsplink-apps.sh | 25 ++ ...m-device-create-and-semaphore-include-fix.patch | 121 +++++++ .../dvsdk/files/lpm-make-symbol-warnings-fix.patch | 117 ++++++ .../files/sdma-class-device-and-includes-fix.patch | 59 +++ .../files/unloadmodules-ti-codec-engine-apps.sh | 12 + recipes/dvsdk/files/unloadmodules-ti-dmai-apps.sh | 12 + .../dvsdk/files/unloadmodules-ti-dsplink-apps.sh | 5 + recipes/dvsdk/gstreamer-ti/gst-buffsize.diff | 113 ++++++ recipes/dvsdk/gstreamer-ti_svn.bb | 57 +++ recipes/dvsdk/readme.txt | 10 + recipes/dvsdk/ti-codec-combos_3.16.bb | 91 +++++ recipes/dvsdk/ti-codec-engine_2.21.bb | 278 +++++++++++++++ recipes/dvsdk/ti-codec-engine_2.23.bb | 394 +++++++++++++++++++++ recipes/dvsdk/ti-dmai_svn.bb | 87 +++++ recipes/dvsdk/ti-paths.inc | 110 ++++++ 60 files changed, 2390 insertions(+), 2390 deletions(-) delete mode 100644 recipes/dsplink/dsplink.inc delete mode 100755 recipes/dsplink/files/Makefile-dsplink-dsp delete mode 100755 recipes/dsplink/files/Makefile-dsplink-gpp delete mode 100644 recipes/dsplink/files/cmem-class-device-27-and-sched-include-fix.patch delete mode 100644 recipes/dsplink/files/dmai-built-with-angstrom.patch delete mode 100644 recipes/dsplink/files/dmai-do-not-panic-on-mixer-failure.patch delete mode 100644 recipes/dsplink/files/dmai-support-32bit-align.patch delete mode 100644 recipes/dsplink/files/dmai-update-cpu-name.patch delete mode 100644 recipes/dsplink/files/dmai-update-fb-display.patch delete mode 100644 recipes/dsplink/files/dmai-update-v4l2-display.patch delete mode 100644 recipes/dsplink/files/dsplink-128M.patch delete mode 100644 recipes/dsplink/files/dsplink-add-class-device-create-support.patch delete mode 100644 recipes/dsplink/files/dsplink-semaphore-27.patch delete mode 100755 recipes/dsplink/files/loadmodules-ti-codec-engine-apps.sh delete mode 100755 recipes/dsplink/files/loadmodules-ti-dmai-apps.sh delete mode 100755 recipes/dsplink/files/loadmodules-ti-dsplink-apps.sh delete mode 100644 recipes/dsplink/files/lpm-device-create-and-semaphore-include-fix.patch delete mode 100644 recipes/dsplink/files/lpm-make-symbol-warnings-fix.patch delete mode 100644 recipes/dsplink/files/sdma-class-device-and-includes-fix.patch delete mode 100755 recipes/dsplink/files/unloadmodules-ti-codec-engine-apps.sh delete mode 100755 recipes/dsplink/files/unloadmodules-ti-dmai-apps.sh delete mode 100755 recipes/dsplink/files/unloadmodules-ti-dsplink-apps.sh delete mode 100644 recipes/dsplink/gstreamer-ti/gst-buffsize.diff delete mode 100644 recipes/dsplink/gstreamer-ti_svn.bb delete mode 100644 recipes/dsplink/readme.txt delete mode 100644 recipes/dsplink/ti-codec-combos_3.16.bb delete mode 100644 recipes/dsplink/ti-codec-engine_2.21.bb delete mode 100644 recipes/dsplink/ti-codec-engine_2.23.bb delete mode 100644 recipes/dsplink/ti-dmai_svn.bb delete mode 100644 recipes/dsplink/ti-paths.inc create mode 100644 recipes/dvsdk/dsplink.inc create mode 100755 recipes/dvsdk/files/Makefile-dsplink-dsp create mode 100755 recipes/dvsdk/files/Makefile-dsplink-gpp create mode 100644 recipes/dvsdk/files/cmem-class-device-27-and-sched-include-fix.patch create mode 100644 recipes/dvsdk/files/dmai-built-with-angstrom.patch create mode 100644 recipes/dvsdk/files/dmai-do-not-panic-on-mixer-failure.patch create mode 100644 recipes/dvsdk/files/dmai-support-32bit-align.patch create mode 100644 recipes/dvsdk/files/dmai-update-cpu-name.patch create mode 100644 recipes/dvsdk/files/dmai-update-fb-display.patch create mode 100644 recipes/dvsdk/files/dmai-update-v4l2-display.patch create mode 100644 recipes/dvsdk/files/dsplink-128M.patch create mode 100644 recipes/dvsdk/files/dsplink-add-class-device-create-support.patch create mode 100644 recipes/dvsdk/files/dsplink-semaphore-27.patch create mode 100755 recipes/dvsdk/files/loadmodules-ti-codec-engine-apps.sh create mode 100755 recipes/dvsdk/files/loadmodules-ti-dmai-apps.sh create mode 100755 recipes/dvsdk/files/loadmodules-ti-dsplink-apps.sh create mode 100644 recipes/dvsdk/files/lpm-device-create-and-semaphore-include-fix.patch create mode 100644 recipes/dvsdk/files/lpm-make-symbol-warnings-fix.patch create mode 100644 recipes/dvsdk/files/sdma-class-device-and-includes-fix.patch create mode 100755 recipes/dvsdk/files/unloadmodules-ti-codec-engine-apps.sh create mode 100755 recipes/dvsdk/files/unloadmodules-ti-dmai-apps.sh create mode 100755 recipes/dvsdk/files/unloadmodules-ti-dsplink-apps.sh create mode 100644 recipes/dvsdk/gstreamer-ti/gst-buffsize.diff create mode 100644 recipes/dvsdk/gstreamer-ti_svn.bb create mode 100644 recipes/dvsdk/readme.txt create mode 100644 recipes/dvsdk/ti-codec-combos_3.16.bb create mode 100644 recipes/dvsdk/ti-codec-engine_2.21.bb create mode 100644 recipes/dvsdk/ti-codec-engine_2.23.bb create mode 100644 recipes/dvsdk/ti-dmai_svn.bb create mode 100644 recipes/dvsdk/ti-paths.inc (limited to 'recipes') diff --git a/recipes/dsplink/dsplink.inc b/recipes/dsplink/dsplink.inc deleted file mode 100644 index 1ca01c399c..0000000000 --- a/recipes/dsplink/dsplink.inc +++ /dev/null @@ -1,112 +0,0 @@ -DESCRIPTION = "DSP Link for TI ARM/DSP processors" - -DEPENDS = "virtual/kernel perl-native" - -inherit module - -do_configure () { - # Clean up stale binaries - find ${S} -name "*.ko" -exec rm {} \; || true - find ${S} -name "*.o" -exec rm {} \; || true - - # Run perl script to create appropriate makefiles (v1.60 and up) - ( - cd ${DSPLINK} - perl config/bin/dsplinkcfg.pl --platform=${DSPLINKPLATFORM} --nodsp=1 --dspcfg_0=${DSPCFG} --dspos_0=DSPBIOS5XX --gppos=${GPPOS} --comps=ponslrm - ) -} - -do_compile () { - unset DISPLAY - sed -i -e s:armv7a:armv7-a:g ${DSPLINK}/make/Linux/omap3530_2.6.mk - - # export various settings to override the defaults in the makefiles - export DSP_BASE_CGTOOLS=${TITOOLSDIR}/${TICGTOOLSDIR} - export DSP_BASE_BIOS=${TITOOLSDIR}/${TIBIOSDIR} - export DSP_BASE_RTDX=${TITOOLSDIR}/${TIBIOSDIR}/packages/ti/rtdx - export GPPTOOL_DIR=${CROSS_DIR} - export LINUXKERNEL_INSTALL_DIR=${STAGING_KERNEL_DIR} - export LINK_INSTALL_DIR=${DSPLINK} - export VARIANT=${DSPLINKSOC} - export PLATFORM=${DSPLINKPLATFORM} - export BASE_TOOLCHAIN=${CROSS_DIR} - export BASE_CGTOOLS=${BASE_TOOLCHAIN}/bin - # 'OSINC_PLATFORM' is used in both the dsp and gpp sides... - export OSINC_PLATFORM1=${CROSS_DIR}/lib/gcc/${TARGET_SYS}/$(${TARGET_PREFIX}gcc -dumpversion)/include - export OSINC_TARGET=${BASE_TOOLCHAIN}/target/usr/include - - # 'ARCHIVER' is being used in the dsp side of the build as well as gpp - export ARCHIVER_AR=${TARGET_PREFIX}ar - export BASE_SABIOS=${DSP_BASE_BIOS} - - #dsplinkk.ko bits - if [ ! -d ${DSPLINK}/gpp/BUILD/EXPORT/RELEASE ] ; then - install -d ${DSPLINK}/gpp/BUILD/EXPORT/RELEASE - fi - - cp ${WORKDIR}/Makefile-dsplink-gpp ${DSPLINK}/gpp/BUILD/EXPORT/RELEASE/Makefile - cd ${DSPLINK}/gpp/BUILD/EXPORT/RELEASE/ - - unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS - export KDIR=${STAGING_KERNEL_DIR} - - make -e driver - make -e library - make -e samples - - make -e -f ${WORKDIR}/Makefile-dsplink-dsp - cp -a * ${DSPLINK}/gpp/export/BIN/Linux/${DSPLINKPLATFORM}/RELEASE -} - -do_install () { - #driver - kernel module - install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp - cp ${DSPLINK}/gpp/BUILD/EXPORT/RELEASE/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/ - - #library - install -d ${D}/${libdir} - install -m 0755 ${DSPLINK}/gpp/BUILD/EXPORT/RELEASE/dsplink.lib ${D}/${libdir} - - #sample apps - install -d ${D}/${datadir}/ti-dsplink - install ${DSPLINK}/gpp/BUILD/EXPORT/RELEASE/*gpp ${D}/${datadir}/ti-dsplink || true - for i in $(find ${DSPLINK}/dsp/BUILD/ -name "*.out") ; do - install ${i} ${D}/${datadir}/ti-dsplink - done -} - -# Codec Engine and friends need a complete tree, so stage it all -do_stage() { - install -d ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/${PN} - cp -pPrf ${S}/* ${STAGING_DIR}/${MULTIMACH_TARGET_SYS}/${PN}/ -} - -PACKAGES =+ "ti-dsplink-module ti-dsplink-apps" -FILES_ti-dsplink-module = "/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/dsplinkk.ko" -FILES_ti-dsplink-apps = "${datadir}/ti-dsplink/* ${libdir}/dsplink.lib" - -pkg_postinst_ti-dsplink-module () { - if [ -n "$D" ]; then - exit 1 - fi - depmod -a - update-modules || true -} - -pkg_postrm_ti-dsplink-module () { - update-modules || true -} - -INHIBIT_PACKAGE_STRIP = "1" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -#legacy upgrade helpers -RPROVIDES_ti-dsplink-module += "dsplink-module" -RREPLACES_ti-dsplink-module += "dsplink-module" -RPROVIDES_ti-dsplink-apps += "dsplink-apps" -RREPLACES_ti_dsplink-apps += "dsplink-apps" - -#add run-time dependencies - note for kernel module we can only use RRECOMMENDS, since modules might be built into the kernel -RRECOMMENDS_ti-dsplink-apps += "ti-dsplink-module" - diff --git a/recipes/dsplink/files/Makefile-dsplink-dsp b/recipes/dsplink/files/Makefile-dsplink-dsp deleted file mode 100755 index 0861f1ee21..0000000000 --- a/recipes/dsplink/files/Makefile-dsplink-dsp +++ /dev/null @@ -1,59 +0,0 @@ -# -# ======== makeunix ======== -# - -# Import Tools Path from Rules.make -#include Rules.make - -PROJECT_BASE_DIR = $(shell pwd) -LINUXKERNEL_INSTALL_DIR:=some-path/kernel -LINK_INSTALL_DIR := some-path/dsplink_1_51/dsplink - -# The prefix to be added before the GNU compiler tools (optionally including -# path), i.e. "arm_v5t_le-" or "/opt/bin/arm_v5t_le-". -GPPTOOL_DIR:=some-path/cross - -# ---- DSP tools ---- -DSP_BASE_CGTOOLS := some-path/cg6x_6_0_19 -DSP_BASE_BIOS := some-path/bios_5_32_03 -DSP_BASE_RTDX := some-path/bios_5_32_03/packages/ti/rtdx -OSINC_PLATFORM1 := something -ARCHIVER_AR := something - - -# ---- construct Link build make vars ---- -GPP_MAKE_OPTS := COMPILER=$(GPPTOOL_DIR)/bin/arm-angstrom-linux-gnueabi-gcc \ - LINKER=$(GPPTOOL_DIR)/bin/arm-angstrom-linux-gnueabi-gcc \ - LD=$(GPPTOOL_DIR)/bin/arm-angstrom-linux-gnueabi-ld \ - ARCHIVER1=$(GPPTOOL_DIR)/bin/arm-angstrom-linux-gnueabi-ld \ - ARCHIVER2=$(GPPTOOL_DIR)/bin/arm-angstrom-linux-gnueabi-ld \ - CROSS_COMPILE=arm-angstrom-linux-gnueabi- \ - DSPLINK=$(LINK_INSTALL_DIR) \ - BASE_TOOLCHAIN=$(GPPTOOL_DIR) \ - BASE_BUILDOS=$(LINUXKERNEL_INSTALL_DIR) \ - ARCHIVER=$(ARCHIVER_AR) OSINC_PLATFORM=$(OSINC_PLATFORM1) \ - -DSP_MAKE_OPTS := DSPLINK=$(DSPLINK) \ - DPPROOT=$(DSPLINK)/dsp \ - BASE_SABIOS=$(DSP_BASE_BIOS) \ - BASE_CGTOOLS=$(DSP_BASE_CGTOOLS) \ - BASE_RTDX=$(DSP_BASE_RTDX) - - -# ======== all ======== -all: $(LINK_INSTALL_DIR)/packages/dsplink/gpp/export/BIN/Linux/Davinci/RELEASE/dsplinkk.ko - -$(LINK_INSTALL_DIR)/packages/dsplink/gpp/export/BIN/Linux/Davinci/RELEASE/dsplinkk.ko: - #@echo Building DSPLINK GPP driver, libs - #make -s -C $(LINK_INSTALL_DIR)/gpp/src $(GPP_MAKE_OPTS) - #make -s -C $(DSPLINK)/gpp/src/samples $(GPP_MAKE_OPTS) - @echo Building DSPLINK DSP libs and message sample for DaVinci... - make -C $(DSPLINK)/dsp/src $(DSP_MAKE_OPTS) - make -C $(DSPLINK)/dsp/src/samples $(DSP_MAKE_OPTS) - -# clean rules -clean: - @echo Cleaning DSPLINK GPP driver, libs - make -s -C $(LINK_INSTALL_DIR)/gpp/src $(GPP_MAKE_OPTS) clean - @rm -rf $(LINK_INSTALL_DIR)/gpp/export/BIN/* - @rm -rf $(LINK_INSTALL_DIR)/gpp/export/INCLUDE/* diff --git a/recipes/dsplink/files/Makefile-dsplink-gpp b/recipes/dsplink/files/Makefile-dsplink-gpp deleted file mode 100755 index d9f2f6209a..0000000000 --- a/recipes/dsplink/files/Makefile-dsplink-gpp +++ /dev/null @@ -1,120 +0,0 @@ -# Composite Makefile -DIRSEP=/ - -TI_DSPLINK_RELATIVE_PATH :=../../../../ - -# include the CURRENTCFG.mk -include $(DSPLINK)$(DIRSEP)config$(DIRSEP)BUILD$(DIRSEP)CURRENTCFG.MK - -# Generate the list of sources -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)arch$(DIRSEP)SOURCES -ARCH_SOURCES := $(addprefix $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)arch$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)ldrv$(DIRSEP)SOURCES -LDRV_SOURCES := $(addprefix $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)ldrv$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)ldrv$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)SOURCES -LDRV_SOURCES += $(addprefix $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)ldrv$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)gen$(DIRSEP)SOURCES -GEN_SOURCES := $(addprefix $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)gen$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)pmgr$(DIRSEP)SOURCES -PMGR_SOURCES := $(addprefix $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)pmgr$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)pmgr$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)SOURCES -PMGR_SOURCES += $(addpreifx $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)pmgr$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)pmgr$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)$(TI_DSPLINK_GPPOSVERSION)$(DIRSEP)SOURCES -PMGR_SOURCES += $(addprefix $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)pmgr$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)$(TI_DSPLINK_GPPOSVERSION)$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)osal$(DIRSEP)SOURCES -OSAL_SOURCES := $(addprefix $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)osal$(DIRSEP)$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)osal$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)SOURCES -OSAL_SOURCES += $(addprefix $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)osal$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)osal$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)$(TI_DSPLINK_GPPOSVERSION)$(DIRSEP)SOURCES -OSAL_SOURCES += $(addprefix $(TI_DSPLINK_RELATIVE_PATH)gpp$(DIRSEP)src$(DIRSEP)osal$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)$(TI_DSPLINK_GPPOSVERSION)$(DIRSEP),$(SOURCES)) - -DSPLINK_SOURCES := $(ARCH_SOURCES) $(LDRV_SOURCES) $(GEN_SOURCES) $(OSAL_SOURCES) $(PMGR_SOURCES) -DSPLINK_OBJS := $(foreach srcFile, $(DSPLINK_SOURCES),$(basename $(srcFile)).o) - -# EXTRA_CFLAGS -EXTRA_CFLAGS += $(addprefix -D, $(TI_DSPLINK_GPP_DEFINES)) -EXTRA_CFLAGS += $(addprefix -I, $(TI_DSPLINK_GPP_INC_PATH)) -EXTRA_CFLAGS += -DEXPORT_SYMTAB -EXTRA_CFLAGS += -DTRACE_KERNEL - -ifneq ($(KERNELRELEASE),) -obj-m := dsplinkk.o -dsplinkk-objs := $(DSPLINK_OBJS) -else -KDIR := /path/to/kernel/ -PWD := $(shell pwd) -driver: - $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules -endif - -clean: - @echo DSPLINK - cleaning driver, library and samples - find $(DSPLINK) -name "*.o" -exec rm {} \; - rm -fr dsplinkk.ko dsplinkk.mod.c Module.symvers *gpp *.a *.lib - -################################################################################################ -# USER SIDE -BUILD_CONFIG := ..$(DIRSEP)..$(DIRSEP)..$(DIRSEP)config$(DIRSEP)BUILD -# Generate the list of sources -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)api$(DIRSEP)SOURCES -API_SOURCES := $(addprefix $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)api$(DIRSEP),$(SOURCES)) -SOURCES := -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)api$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)SOURCES -API_SOURCES += $(addprefix $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)api$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP),$(SOURCES)) - -# Update the CFLAG -#CC = arm-none-linux-gnueabi-gcc -#AR = arm-none-linux-gnueabi-ar -#LD = arm-none-linux-gnueabi-ld -ARFLAGS = -rs -LDFLAGS = -r -EXTRA_CFLAGS += $(addprefix -D, $(TI_DSPLINK_GPP_DEFINES)) $(addprefix -I, $(TI_DSPLINK_GPP_INC_PATH)) - -define CONFIG_template -$(shell cp $(DSPLINK)$(DIRSEP)config$(DIRSEP)all$(DIRSEP)$(1) $(DSPLINK)$(DIRSEP)config$(DIRSEP)BUILD$(DIRSEP)) -endef - -define PROGRAM_template -$(basename $(1)).o: $(1) - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $(1) -o $(basename $(1)).o -endef -$(foreach prog,$(API_SOURCES),$(eval $(call PROGRAM_template,$(prog)))) -$(foreach prog,$(CONFIG),$(eval $(call CONFIG_template,$(prog)))) - -DSPLINK_API_OBJS := $(foreach srcFile, $(API_SOURCES),$(basename $(srcFile)).o) - -library: $(DSPLINK_API_OBJS) - @echo DSPLINK - building user library - dsplink.lib - $(LD) $(LDFLAGS) -o dsplink.lib $(DSPLINK_API_OBJS) - $(AR) $(ARFLAGS) dsplink.a $(DSPLINK_API_OBJS) - - -######################################### SAMPLES ################################### -SOURCES := -define SAMPLES_template -ifneq ($(1),message_multi) -$(1): $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(1).c $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)$(1)_os.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -I$(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1) -I$(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(TI_DSPLINK_GPPOS) -o $(1)gpp $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(1).c $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)$(1)_os.c $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)main.c dsplink.lib -lpthread -else -$(1): $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)message.c $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)message_os.c - $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -I$(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1) -I$(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(TI_DSPLINK_GPPOS) -o $(1)gpp $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)message.c $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)message_os.c $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)$(1)$(DIRSEP)$(TI_DSPLINK_GPPOS)$(DIRSEP)main.c dsplink.lib -lpthread -endif -endef - -include $(TI_DSPLINK_GPPROOT)$(DIRSEP)src$(DIRSEP)samples$(DIRSEP)DIRS -$(foreach prog,$(DIRS),$(eval $(call SAMPLES_template,$(prog)))) - -samples: $(foreach prog,$(DIRS),$(prog)) - -all: driver library samples diff --git a/recipes/dsplink/files/cmem-class-device-27-and-sched-include-fix.patch b/recipes/dsplink/files/cmem-class-device-27-and-sched-include-fix.patch deleted file mode 100644 index 8eb3210bb1..0000000000 --- a/recipes/dsplink/files/cmem-class-device-27-and-sched-include-fix.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff -uNr codec_engine_2_21/cetools/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c codec_engine_2_21_fix/cetools/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c ---- codec_engine_2_21/cetools/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c 2009-02-12 22:02:15.000000000 +0000 -+++ codec_engine_2_21_fix/cetools/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c 2009-02-12 22:08:49.000000000 +0000 -@@ -29,6 +29,7 @@ - #include - #include - #include -+#include - #include - #include - #include -@@ -1710,7 +1711,11 @@ - #ifdef USE_CLASS_DEVICE - class_device_create(cmem_class, NULL, MKDEV(cmem_major, 0), NULL, "cmem"); - #else -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27) -+ device_create(cmem_class, NULL, MKDEV(cmem_major, 0), NULL, "cmem"); -+#else - device_create(cmem_class, NULL, MKDEV(cmem_major, 0), "cmem"); -+#endif // LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,27) - #endif // USE_CLASS_DEVICE - #endif // USE_CLASS_SIMPLE - #endif // USE_UDEV diff --git a/recipes/dsplink/files/dmai-built-with-angstrom.patch b/recipes/dsplink/files/dmai-built-with-angstrom.patch deleted file mode 100644 index fc49789718..0000000000 --- a/recipes/dsplink/files/dmai-built-with-angstrom.patch +++ /dev/null @@ -1,48 +0,0 @@ -Index: dmai_1_20_00_06/packages/config.bld -=================================================================== ---- dmai_1_20_00_06.orig/packages/config.bld 2009-02-11 19:38:51.000000000 -0600 -+++ dmai_1_20_00_06/packages/config.bld 2009-02-11 19:39:23.000000000 -0600 -@@ -42,7 +42,7 @@ - - /* location of the Codec Sourcery Arm9 tools */ - var GCArmv5T = xdc.useModule('gnu.targets.arm.GCArmv5T'); --GCArmv5T.LONGNAME = 'bin/arm-none-linux-gnueabi-gcc'; -+GCArmv5T.LONGNAME = 'bin/arm-angstrom-linux-gnueabi-gcc'; - GCArmv5T.platform = "ti.platforms.evm3530"; - GCArmv5T.rootDir = java.lang.System.getenv("CSTOOL_DIR"); - -Index: dmai_1_20_00_06/packages/ti/sdo/dmai/Makefile -=================================================================== ---- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/Makefile 2009-02-11 19:39:57.000000000 -0600 -+++ dmai_1_20_00_06/packages/ti/sdo/dmai/Makefile 2009-02-11 19:58:05.000000000 -0600 -@@ -33,7 +33,7 @@ - DMAI_INSTALL_DIR = ../../../.. - TARGET = dmai - --include $(DMAI_INSTALL_DIR)/Rules.make -+#include $(DMAI_INSTALL_DIR)/Rules.make - - # Should the full command be echoed to the console during build? - VERBOSE=false -@@ -64,7 +64,7 @@ - MVL_CPP_FLAGS = $(GNU_CPP_FLAGS) -Dxdc_target_name__=MVArm9 - CS_CPP_FLAGS = $(GNU_CPP_FLAGS) -Dxdc_target_name__=codesourcery/GCArmv5T - --GNU_C_FLAGS = $(C_FLAGS) -Wall -Werror -+GNU_C_FLAGS = $(C_FLAGS) -Wall - C64P_C_FLAGS = $(C_FLAGS) - - GNU_AR_FLAGS = $(AR_FLAGS) -Index: dmai_1_20_00_06/packages/ti/sdo/dmai/apps/Makefile.app -=================================================================== ---- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/apps/Makefile.app 2009-02-11 19:58:44.000000000 -0600 -+++ dmai_1_20_00_06/packages/ti/sdo/dmai/apps/Makefile.app 2009-02-11 19:59:01.000000000 -0600 -@@ -34,7 +34,7 @@ - ifndef DMAI_INSTALL_DIR - DMAI_INSTALL_DIR = ../../../../../.. - endif --include $(DMAI_INSTALL_DIR)/Rules.make -+#include $(DMAI_INSTALL_DIR)/Rules.make - - # Should the full command be echoed to the console during build? - VERBOSE=false diff --git a/recipes/dsplink/files/dmai-do-not-panic-on-mixer-failure.patch b/recipes/dsplink/files/dmai-do-not-panic-on-mixer-failure.patch deleted file mode 100644 index 20e1aece72..0000000000 --- a/recipes/dsplink/files/dmai-do-not-panic-on-mixer-failure.patch +++ /dev/null @@ -1,31 +0,0 @@ -Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Sound_alsa.c -=================================================================== ---- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/Sound_alsa.c 2009-02-11 19:19:23.000000000 -0600 -+++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Sound_alsa.c 2009-02-11 19:19:25.000000000 -0600 -@@ -139,7 +139,7 @@ - - snd_mixer_selem_id_free (sid); - snd_mixer_close (rcMixer); -- -+ - return Dmai_EOK; - } - -@@ -431,14 +431,13 @@ - Sound_alsa_delete(hSound); - return NULL; - } -- -+ - if (setMixerVolume (attrs) <0) { -- Sound_alsa_delete (hSound); -- return NULL; -+ Dmai_dbg2("Failed to set the mixer volume on %s (%s)\n", -+ AUDIO_DEVICE, snd_strerror(status)); - } - } - -- - return hSound; - } - diff --git a/recipes/dsplink/files/dmai-support-32bit-align.patch b/recipes/dsplink/files/dmai-support-32bit-align.patch deleted file mode 100644 index 0ee817d9d9..0000000000 --- a/recipes/dsplink/files/dmai-support-32bit-align.patch +++ /dev/null @@ -1,17 +0,0 @@ -Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/omap3530/Resize.c -=================================================================== ---- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/omap3530/Resize.c 2009-02-11 19:20:45.000000000 -0600 -+++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/omap3530/Resize.c 2009-02-11 19:21:09.000000000 -0600 -@@ -557,9 +557,9 @@ - srcOffset = srcDim.y * srcDim.lineLength + srcDim.x * 2; - dstOffset = dstDim.y * dstDim.lineLength + dstDim.x * 2; - -- /* Input and output buffers must be 4096 bytes aligned */ -- assert(((Buffer_getPhysicalPtr(hDstBuf) + srcOffset) & 0xFFF) == 0); -- assert(((Buffer_getPhysicalPtr(hSrcBuf) + dstOffset) & 0xFFF) == 0); -+ /* Pointers must be a multiple of 32 bytes */ -+ assert((Buffer_getPhysicalPtr(hDstBuf) & 0x1F) == 0); -+ assert((Buffer_getPhysicalPtr(hSrcBuf) & 0x1F) == 0); - - /* Queue the resizer buffers */ - for (i=0; i < 2; i++) { diff --git a/recipes/dsplink/files/dmai-update-cpu-name.patch b/recipes/dsplink/files/dmai-update-cpu-name.patch deleted file mode 100644 index 052a8e3236..0000000000 --- a/recipes/dsplink/files/dmai-update-cpu-name.patch +++ /dev/null @@ -1,16 +0,0 @@ -Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Cpu.c -=================================================================== ---- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/Cpu.c 2009-02-12 09:34:22.000000000 -0600 -+++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Cpu.c 2009-02-12 09:34:51.000000000 -0600 -@@ -103,7 +103,10 @@ - else if (strcmp(valBuf, "DM357 EVM") == 0) { - *device = Cpu_Device_DM6446; - } -- else if (strcmp(valBuf, "OMAP3EVM Board") == 0) { -+ else if ((strcmp(valBuf, "OMAP3EVM Board") == 0) || -+ (strcmp(valBuf, "OMAP3 EVM") == 0) || -+ (strcmp(valBuf, "OMAP3 Beagle Board") == 0) -+ ){ - *device = Cpu_Device_OMAP3530; - } - else { diff --git a/recipes/dsplink/files/dmai-update-fb-display.patch b/recipes/dsplink/files/dmai-update-fb-display.patch deleted file mode 100644 index 91c1dd15aa..0000000000 --- a/recipes/dsplink/files/dmai-update-fb-display.patch +++ /dev/null @@ -1,77 +0,0 @@ -Index: dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Display_fbdev.c -=================================================================== ---- dmai_1_20_00_06.orig/packages/ti/sdo/dmai/linux/Display_fbdev.c 2009-02-11 19:59:57.000000000 -0600 -+++ dmai_1_20_00_06/packages/ti/sdo/dmai/linux/Display_fbdev.c 2009-02-11 20:02:46.000000000 -0600 -@@ -41,10 +41,7 @@ - #include - #include - --#ifdef Dmai_Device_omap3530 --/* OMAP specific kernel headers */ --#include