diff options
author | Koen Kooi <koen@openembedded.org> | 2008-11-19 14:41:01 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-11-19 14:41:01 +0100 |
commit | f96aefecd1b692abad17905b8828c7212d8a4cb9 (patch) | |
tree | 42089816a1c657293731f87d45ca85ce02bc910e /packages/dsplink/dsplink-module_1.60.bb | |
parent | 71781609dc1ab7d434e95626c7d25ea3624d428e (diff) |
dsplink: add a dsplink-module recipe that uses Kbuild to build a kernel module
* also start transitioning monolithis recipe to build kernel parts as seperate recipes
Diffstat (limited to 'packages/dsplink/dsplink-module_1.60.bb')
-rw-r--r-- | packages/dsplink/dsplink-module_1.60.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/dsplink/dsplink-module_1.60.bb b/packages/dsplink/dsplink-module_1.60.bb new file mode 100644 index 0000000000..e2a8ef3d63 --- /dev/null +++ b/packages/dsplink/dsplink-module_1.60.bb @@ -0,0 +1,43 @@ +# The tconf tool breaks if there is a '.' in your pwd +PR = "r2" +PE = "1" +PV = "160" + +# Get dsplink tarball from TI website, place in sources and calculate +# md5sum +# Look for tarball at https://www-a.ti.com/downloads/sds_support/targetcontent/link/link_1_60/index.html + +SRC_URI = "http://install.tarball.in.source.dir/dsplink_1_60.tar.gz \ + file://Makefile.dsplink \ + file://Makefile-dsplink-kbuild \ +" + +S = "${WORKDIR}/dsplink_1_60/dsplink" + +# Needed for buildscripts +export DSPLINK="${S}" + +inherit module +require ti-paths.inc + +do_configure() { + # Run perl script to create appropriate makefiles (v1.60 and up) + perl config/bin/dsplinkcfg.pl --platform=${DSPLINKPLATFORM} --nodsp=1 --dspcfg_0=${DSPCFG} --dspos_0=DSPBIOS5XX --gppos=${GPPOS} --comps=ponslrm + + mkdir -p ${S}/dsplink-kbuild-test + cp ${WORKDIR}/Makefile-dsplink-kbuild ${S}/dsplink-kbuild-test/Makefile +} + +do_compile_prepend() { + cd ${S}/dsplink-kbuild-test/ +} + +do_install() { + install -d ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp + cp ${S}/dsplink-kbuild-test/dsplinkk.ko ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/dsp/ +} + +INHIBIT_PACKAGE_STRIP = "1" + + + |