gdbc6x 1.1.0
cover gdbc6x 1.1.0
* The gdbc6x utility provides remote gdb capabilities for C6x DSP cores.
Jacob Stiffler (3):
gdbserverproxy-module-drv: Add version 1.1.0
gdbserver-c6x: Add version 1.1.0
gdbc6x: Add version 1.1.0
recipes-devtools/gdbc6x/gdbc6x.inc | 9 ++++ recipes-devtools/gdbc6x/gdbc6x/init | 48 ++++++++++++++++++++ recipes-devtools/gdbc6x/gdbc6x_git.bb | 48 ++++++++++++++++++++ recipes-devtools/gdbc6x/gdbserver-c6x_git.bb | 46 +++++++++++++++++++ .../gdbc6x/gdbserverproxy-module-drv_git.bb | 31 +++++++++++++ 5 files changed, 182 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbc6x.inc create mode 100644 recipes-devtools/gdbc6x/gdbc6x/init create mode 100644 recipes-devtools/gdbc6x/gdbc6x_git.bb create mode 100644 recipes-devtools/gdbc6x/gdbserver-c6x_git.bb create mode 100644 recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb
Signature · 1 line
1.7.9.5
PATCH 1/3 gdbserverproxy-module-drv: Add version 1.1.0
--- recipes-devtools/gdbc6x/gdbc6x.inc | 9 ++++++ .../gdbc6x/gdbserverproxy-module-drv_git.bb | 31 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbc6x.inc create mode 100644 recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb
recipes-devtools/gdbc6x/gdbc6x.inc new file +9 -0
@@ -0,0 +1,9 @@ +BRANCH = "master" + +PV = "1.1.0" +INC_PR = "r0" + +# This corresponds to version 1.1.0 +SRCREV = "1ab06f8bcfe7540754558bac331a0312c4b59142" + +SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +31 -0
@@ -0,0 +1,31 @@ +DESCRIPTION="Interface for GDB to commincate witha TI C66X DSP" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +# This package builds a kernel module, use kernel PR as base and append a local +MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}" +PR = "${MACHINE_KERNEL_PR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" + +EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +S = "${WORKDIR}/git/kernel_module/gdbproxy-mod" + +module_autoload_gdbserverproxy = "gdbserverproxy" + +inherit module + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1" + +CREATE_SRCIPK = "1" +SRCIPK_INSTALL_DIR = "board-support/extra-drivers/${PN}-${PV}" +SRCIPK_PACKAGE_ARCH = "${MACHINE_ARCH}"
Signature · 1 line
1.7.9.5
Re: [PATCH 1/3] gdbserverproxy-module-drv: Add version 1.1.0
Quoted 46 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbc6x.inc | 9 ++++++ .../gdbc6x/gdbserverproxy-module-drv_git.bb | 31 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbc6x.inc create mode 100644 recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bbrecipes-devtools/gdbc6x/gdbc6x.inc new file +9
-0@@ -0,0 +1,9 @@ +BRANCH = "master" + +PV = "1.1.0" +INC_PR = "r0" + +# This corresponds to version 1.1.0 +SRCREV = "1ab06f8bcfe7540754558bac331a0312c4b59142" + +SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +17
-0@@ -0,0 +1,31 @@ +DESCRIPTION="Interface for GDB to commincate witha TI C66X DSP" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +# This package builds a kernel module, use kernel PR as base and append a local +MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}" +PR = "${MACHINE_KERNEL_PR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" +
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb line 27
Quoted 10 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +10
-0+EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +S = "${WORKDIR}/git/kernel_module/gdbproxy-mod" + +module_autoload_gdbserverproxy = "gdbserverproxy" + +inherit module + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1"
What's the need for the above?
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb line 31
Quoted 3 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +3
-0+CREATE_SRCIPK = "1" +SRCIPK_INSTALL_DIR = "board-support/extra-drivers/${PN}-${PV}" +SRCIPK_PACKAGE_ARCH = "${MACHINE_ARCH}"
This is not the right place for these^^ either.
Signature · 1 line
Denys
Re: [PATCH 1/3] gdbserverproxy-module-drv: Add version 1.1.0
Quoted 50 lines · Denys Dmytriyenko
Quoted 49 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbc6x.inc | 9 ++++++ .../gdbc6x/gdbserverproxy-module-drv_git.bb | 31 ++++++++++++++++++++ 2 files changed, 40 insertions(+)create mode 100644 recipes-devtools/gdbc6x/gdbc6x.inc
create mode 100644 recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bbrecipes-devtools/gdbc6x/gdbc6x.inc new file +9
-0@@ -0,0 +1,9 @@ +BRANCH = "master" + +PV = "1.1.0" +INC_PR = "r0" + +# This corresponds to version 1.1.0 +SRCREV = "1ab06f8bcfe7540754558bac331a0312c4b59142" + +SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +20
-0@@ -0,0 +1,31 @@ +DESCRIPTION="Interface for GDB to commincate witha TI C66X DSP" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +# This package builds a kernel module, use kernel PR as base and append a local +MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}" +PR = "${MACHINE_KERNEL_PR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" + +EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +S = "${WORKDIR}/git/kernel_module/gdbproxy-mod"
Quoted 9 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb line 27
Quoted 7 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +7
-0+ +module_autoload_gdbserverproxy = "gdbserverproxy" + +inherit module + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1"What's the need for the above?
All three of these gdbc6x recipes use the same source. Without this there is a QA error due to the file "git/gdbc6x/intl/configure.ac", which is outside of the ${S} directory. The error is the following:
ERROR: virtual/gettext required but not in DEPENDS for file /media/hdd-1TB/jake/git/oe-layersetup_patches/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/gdbserver-c6x/1.1.0-r0.1/git/gdbc6x/intl/configure.ac. Missing inherit gettext?
ERROR: Function failed: do_qa_configure
Is there a better way to handle this?
Quoted 5 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb line 31
Quoted 3 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +3
-0+CREATE_SRCIPK = "1" +SRCIPK_INSTALL_DIR = "board-support/extra-drivers/${PN}-${PV}" +SRCIPK_PACKAGE_ARCH = "${MACHINE_ARCH}"This is not the right place for these^^ either.
This was an oversight, and I'll remove in the next version.
Re: [PATCH 1/3] gdbserverproxy-module-drv: Add version 1.1.0
Quoted 67 lines · Jacob Stiffler
Quoted 50 lines · Denys Dmytriyenko
Quoted 49 lines · Jacob Stiffler
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbc6x.inc | 9 ++++++ .../gdbc6x/gdbserverproxy-module-drv_git.bb | 31 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbc6x.inc create mode 100644 recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bbrecipes-devtools/gdbc6x/gdbc6x.inc new file +9
-0@@ -0,0 +1,9 @@ +BRANCH = "master" + +PV = "1.1.0" +INC_PR = "r0" + +# This corresponds to version 1.1.0 +SRCREV = "1ab06f8bcfe7540754558bac331a0312c4b59142" + +SRC_URI = "git://git.ti.com/sdo-emu/gdbc6x.git;protocol=git;branch=${BRANCH}"recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +20
-0@@ -0,0 +1,31 @@ +DESCRIPTION="Interface for GDB to commincate witha TI C66X DSP" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING.txt;md5=75859989545e37968a99b631ef42722e" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +# This package builds a kernel module, use kernel PR as base and append a local +MACHINE_KERNEL_PR_append = "a+gitr${SRCPV}" +PR = "${MACHINE_KERNEL_PR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" + +EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +S = "${WORKDIR}/git/kernel_module/gdbproxy-mod"Quoted 9 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb line 27
Quoted 7 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +7
-0+ +module_autoload_gdbserverproxy = "gdbserverproxy" + +inherit module + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1"What's the need for the above?
All three of these gdbc6x recipes use the same source. Without this there is a QA error due to the file "git/gdbc6x/intl/configure.ac", which is outside of the ${S} directory. The error is the following:
Quoted 6 lines
ERROR: virtual/gettext required but not in DEPENDS for file /media/hdd-1TB/jake/git/oe-layersetup_patches/build/arago-tmp-external-linaro-toolchain/work/am57xx_evm-linux-gnueabi/gdbserver-c6x/1.1.0-r0.1/git/gdbc6x/intl/configure.ac. Missing inherit gettext?
ERROR: Function failed:do_qa_configureIs there a better way to handle this?
Looks like there's no INSANE_SKIP for this check, but there's a way to bypass it w/o disabling all other QA checks:
EXTRA_OECONF = "--disable-nls"
do_configure() {
:
}Just add some comment above that block explaining why it's needed, something about erroneously tripping QA check for gettext due to unused configure.ac file...
Quoted 8 lines
Quoted 5 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb line 31
Quoted 3 lines
recipes-devtools/gdbc6x/gdbserverproxy-module-drv_git.bb new file +3
-0+CREATE_SRCIPK = "1" +SRCIPK_INSTALL_DIR = "board-support/extra-drivers/${PN}-${PV}" +SRCIPK_PACKAGE_ARCH = "${MACHINE_ARCH}"This is not the right place for these^^ either.
This was an oversight, and I'll remove in the next version.
PATCH 2/3 gdbserver-c6x: Add version 1.1.0
In reply to Jacob Stiffler* c6x DSP development files required to support remote gdb debugging.
--- recipes-devtools/gdbc6x/gdbserver-c6x_git.bb | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbserver-c6x_git.bb
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +46 -0
@@ -0,0 +1,46 @@ +DESCRIPTION="TI gdb-server to be used with c6xgdb." + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +PR = "${INC_PR}.0" + +require recipes-ti/includes/ti-paths.inc + +DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools" + +export XDAIS_DIR = "${XDAIS_INSTALL_DIR}" +export FC_DIR = "${FC_INSTALL_DIR}" +export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" +export XDC_DIR = "${XDC_INSTALL_DIR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" + +EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +PARALLEL_MAKE = "" + +S = "${WORKDIR}/git/gdbserver-c6x/src" + +do_install() { + install -d ${D}${datadir}/ti/gdbc6x/include + install -d ${D}${datadir}/ti/gdbc6x/lib + cp -f ../include/* ${D}${datadir}/ti/gdbc6x/include + cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib +} + +ALLOW_EMPTY_${PN} = "1" + +FILES_${PN}-dev += "\ + ${datadir}/ti/gdbc6x \ +" + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1"
Signature · 1 line
1.7.9.5
Re: [PATCH 2/3] gdbserver-c6x: Add version 1.1.0
Quoted 43 lines · Jacob Stiffler
* c6x DSP development files required to support remote gdb debugging.
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbserver-c6x_git.bb | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbserver-c6x_git.bbrecipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +29
-0@@ -0,0 +1,46 @@ +DESCRIPTION="TI gdb-server to be used with c6xgdb." + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +PR = "${INC_PR}.0" + +require recipes-ti/includes/ti-paths.inc + +DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools" + +export XDAIS_DIR = "${XDAIS_INSTALL_DIR}" +export FC_DIR = "${FC_INSTALL_DIR}" +export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" +export XDC_DIR = "${XDC_INSTALL_DIR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" + +EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +PARALLEL_MAKE = "" +
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 39
Quoted 10 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +10
-0+S = "${WORKDIR}/git/gdbserver-c6x/src" + +do_install() { + install -d ${D}${datadir}/ti/gdbc6x/include + install -d ${D}${datadir}/ti/gdbc6x/lib + cp -f ../include/* ${D}${datadir}/ti/gdbc6x/include + cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib +} + +ALLOW_EMPTY_${PN} = "1"
Why?
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 46
Quoted 6 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +6
-0+FILES_${PN}-dev += "\ + ${datadir}/ti/gdbc6x \ +" + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1"
Why?
Quoted 8 lines
Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 2/3] gdbserver-c6x: Add version 1.1.0
Quoted 47 lines · Denys Dmytriyenko
Quoted 46 lines · Jacob Stiffler
* c6x DSP development files required to support remote gdb debugging.
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbserver-c6x_git.bb | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+)create mode 100644 recipes-devtools/gdbc6x/gdbserver-c6x_git.bb
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +32
-0@@ -0,0 +1,46 @@ +DESCRIPTION="TI gdb-server to be used with c6xgdb." + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +PR = "${INC_PR}.0" + +require recipes-ti/includes/ti-paths.inc + +DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools" + +export XDAIS_DIR = "${XDAIS_INSTALL_DIR}" +export FC_DIR = "${FC_INSTALL_DIR}" +export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" +export XDC_DIR = "${XDC_INSTALL_DIR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" + +EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +PARALLEL_MAKE = "" + +S = "${WORKDIR}/git/gdbserver-c6x/src" + +do_install() {
Quoted 9 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 39
Quoted 7 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +7
-0+ install -d ${D}${datadir}/ti/gdbc6x/include + install -d ${D}${datadir}/ti/gdbc6x/lib + cp -f ../include/* ${D}${datadir}/ti/gdbc6x/include + cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib +} + +ALLOW_EMPTY_${PN} = "1"Why?
This recipes only popultaes the -dev and -staticdev packages.
Quoted 17 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 46
Quoted 6 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +6
-0+FILES_${PN}-dev += "\ + ${datadir}/ti/gdbc6x \ +" + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1"Why?
Quoted 8 lines
Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 2/3] gdbserver-c6x: Add version 1.1.0
Quoted 60 lines · Jacob Stiffler
Quoted 47 lines · Denys Dmytriyenko
Quoted 46 lines · Jacob Stiffler
* c6x DSP development files required to support remote gdb debugging.
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbserver-c6x_git.bb | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbserver-c6x_git.bbrecipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +32
-0@@ -0,0 +1,46 @@ +DESCRIPTION="TI gdb-server to be used with c6xgdb." + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +PR = "${INC_PR}.0" + +require recipes-ti/includes/ti-paths.inc + +DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools" + +export XDAIS_DIR = "${XDAIS_INSTALL_DIR}" +export FC_DIR = "${FC_INSTALL_DIR}" +export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" +export XDC_DIR = "${XDC_INSTALL_DIR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" + +EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +PARALLEL_MAKE = "" + +S = "${WORKDIR}/git/gdbserver-c6x/src" + +do_install() {Quoted 9 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 39
Quoted 7 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +7
-0+ install -d ${D}${datadir}/ti/gdbc6x/include + install -d ${D}${datadir}/ti/gdbc6x/lib + cp -f ../include/* ${D}${datadir}/ti/gdbc6x/include + cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib +} + +ALLOW_EMPTY_${PN} = "1"Why?
Quoted 1 line
This recipes only popultaes the -dev and -staticdev packages.
So, why do you need an empty package then? If you only need -dev and -staticdev added as a dependency for the devkit, this shouldn't be required. Unless there's a need to depend on the main package someplace, in which case you would create an empty one...
Quoted 18 lines
Quoted 17 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 46
Quoted 6 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +6
-0+FILES_${PN}-dev += "\ + ${datadir}/ti/gdbc6x \ +" + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1"Why?
Quoted 8 lines
Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 2/3] gdbserver-c6x: Add version 1.1.0
Quoted 59 lines · Denys Dmytriyenko
Quoted 58 lines · Jacob Stiffler
Quoted 56 lines · Denys Dmytriyenko
Quoted 43 lines · Jacob Stiffler
* c6x DSP development files required to support remote gdb debugging.
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbserver-c6x_git.bb | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+)create mode 100644 recipes-devtools/gdbc6x/gdbserver-c6x_git.bb
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +29
-0@@ -0,0 +1,46 @@ +DESCRIPTION="TI gdb-server to be used with c6xgdb." + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +PR = "${INC_PR}.0" + +require recipes-ti/includes/ti-paths.inc + +DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools" + +export XDAIS_DIR = "${XDAIS_INSTALL_DIR}" +export FC_DIR = "${FC_INSTALL_DIR}" +export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" +export XDC_DIR = "${XDC_INSTALL_DIR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" + +EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +PARALLEL_MAKE = "" +recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 39
Quoted 10 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +10
-0+S = "${WORKDIR}/git/gdbserver-c6x/src" + +do_install() { + install -d ${D}${datadir}/ti/gdbc6x/include + install -d ${D}${datadir}/ti/gdbc6x/lib + cp -f ../include/* ${D}${datadir}/ti/gdbc6x/include + cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib +} + +ALLOW_EMPTY_${PN} = "1"Why?
Quoted 6 lines
Quoted 1 line
This recipes only popultaes the -dev and -staticdev packages.
So, why do you need an empty package then? If you only need -dev and -staticdev added as a dependency for the devkit, this shouldn't be required. Unless there's a need to depend on the main package someplace, in which case you would create an empty one...
Without this, I am seeing an error when populating the devkit:
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies
for packagegroup-arago-toolchain-tisdk-target:
* libulm (= 1.2.0-r0.1) * gdbserver-c6x (= 1.1.0-r0.1) *
* opkg_install_cmd: Cannot install package
packagegroup-arago-toolchain-tisdk-target.
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 46
Quoted 6 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +6
-0+FILES_${PN}-dev += "\ + ${datadir}/ti/gdbc6x \ +" + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1"Why?
Quoted 8 lines
Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 2/3] gdbserver-c6x: Add version 1.1.0
Quoted 69 lines · Jacob Stiffler
Quoted 59 lines · Denys Dmytriyenko
Quoted 58 lines · Jacob Stiffler
Quoted 56 lines · Denys Dmytriyenko
Quoted 43 lines · Jacob Stiffler
* c6x DSP development files required to support remote gdb debugging.
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbserver-c6x_git.bb | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbserver-c6x_git.bbrecipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +29
-0@@ -0,0 +1,46 @@ +DESCRIPTION="TI gdb-server to be used with c6xgdb." + +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://../debian/copyright;md5=82c616b6c8f9c11c46feaaf8f9a11495" + +include gdbc6x.inc + +COMPATIBLE_MACHINE = "dra7xx" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +PR = "${INC_PR}.0" + +require recipes-ti/includes/ti-paths.inc + +DEPENDS = "ti-xdais ti-framework-components ti-cgt6x-native ti-sysbios ti-xdctools" + +export XDAIS_DIR = "${XDAIS_INSTALL_DIR}" +export FC_DIR = "${FC_INSTALL_DIR}" +export TI_CGT_INSTALL = "${STAGING_DIR_NATIVE}/usr/share/ti/cgt-c6x" +export BIOS_DIR = "${SYSBIOS_INSTALL_DIR}" +export XDC_DIR = "${XDC_INSTALL_DIR}" + +PLATFORM = "" +PLATFORM_dra7xx = "DRA7xx_PLATFORM" + +EXTRA_OEMAKE = "PLATFORM=${PLATFORM}" + +PARALLEL_MAKE = "" +recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 39
Quoted 10 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +10
-0+S = "${WORKDIR}/git/gdbserver-c6x/src" + +do_install() { + install -d ${D}${datadir}/ti/gdbc6x/include + install -d ${D}${datadir}/ti/gdbc6x/lib + cp -f ../include/* ${D}${datadir}/ti/gdbc6x/include + cp -f ../lib/* ${D}${datadir}/ti/gdbc6x/lib +} + +ALLOW_EMPTY_${PN} = "1"Why?
Quoted 6 lines
Quoted 1 line
This recipes only popultaes the -dev and -staticdev packages.
So, why do you need an empty package then? If you only need -dev and -staticdev added as a dependency for the devkit, this shouldn't be required. Unless there's a need to depend on the main package someplace, in which case you would create an empty one...
Quoted 8 lines
Without this, I am seeing an error when populating the devkit:
Collected errors:
*satisfy_dependencies_for: Cannot satisfy the following
dependencies for packagegroup-arago-toolchain-tisdk-target:
* libulm (= 1.2.0-r0.1) * gdbserver-c6x (= 1.1.0-r0.1) *
*opkg_install_cmd: Cannot install package
packagegroup-arago-toolchain-tisdk-target.
I guess we could break the default dependency between -dev and the main package, but an empty package would be fine in this case too.
Quoted 18 lines
Quoted 17 lines
Quoted 17 lines
Quoted 17 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb line 46
Quoted 6 lines
recipes-devtools/gdbc6x/gdbserver-c6x_git.bb new file +6
-0+FILES_${PN}-dev += "\ + ${datadir}/ti/gdbc6x \ +" + +do_configure[noexec] = "1" +do_qa_configure[noexec] = "1"Why?
Quoted 8 lines
Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
PATCH 3/3 gdbc6x: Add version 1.1.0
In reply to Jacob Stiffler* The gdbc6x utility provides remote gdb capabilities for C6x DSP cores.
--- recipes-devtools/gdbc6x/gdbc6x/init | 48 +++++++++++++++++++++++++++++++++ recipes-devtools/gdbc6x/gdbc6x_git.bb | 48 +++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbc6x/init create mode 100644 recipes-devtools/gdbc6x/gdbc6x_git.bb
recipes-devtools/gdbc6x/gdbc6x/init new file +48 -0
@@ -0,0 +1,48 @@ +#!/bin/bash + +GDB_DEVICE_NAME='/dev/gdbtty$i' +DSP_FIRMWARE_NAME='/lib/firmware/dra7-dsp$[$i+1]-fw.xe66' + +DSP_L2_GLOBAL_OFFSET="40000000" +DSP_L2_GLOBAL_SHIFT="00800000" + +case "$1" in + start) + + dsp_core_l2_offset=$DSP_L2_GLOBAL_OFFSET + + i=0 + while [ -c "`eval echo $GDB_DEVICE_NAME`" ] + do + dsp_firmware=`eval echo $DSP_FIRMWARE_NAME` + + if [ -f "`eval echo $DSP_FIRMWARE_NAME`" ] + then + eval echo "Initializing $GDB_DEVICE_NAME based on $DSP_FIRMWARE_NAME ..." + + gdb_data_local=`eval readelf -s "$DSP_FIRMWARE_NAME" | \ + grep 'gdb_globalData' | \ + awk '{print $2}'` + + echo "gdb_globalData (local) = $gdb_data_local" + printf "gdb_globalData (global) = %X\n" \ + $[0x$gdb_data_local + 0x$dsp_core_l2_offset] + + + printf "%X\n" $[0x$gdb_data_local + 0x$dsp_core_l2_offset] \ + >> `eval echo $GDB_DEVICE_NAME` + fi + i=$[$i + 1] + dsp_core_l2_offset=`printf "%X" $[0x$dsp_core_l2_offset + 0x$DSP_L2_GLOBAL_SHIFT]` + done + ;; + stop) + # Nothing to be done. + ;; + *) + echo "Usage: $0 {start|stop}" + exit 1 + ;; +esac + +
recipes-devtools/gdbc6x/gdbc6x_git.bb new file +48 -0
48 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Re: [PATCH 3/3] gdbc6x: Add version 1.1.0
Quoted 71 lines · Jacob Stiffler
* The gdbc6x utility provides remote gdb capabilities for C6x DSP cores.
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbc6x/init | 48 +++++++++++++++++++++++++++++++++ recipes-devtools/gdbc6x/gdbc6x_git.bb | 48 +++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 recipes-devtools/gdbc6x/gdbc6x/init create mode 100644 recipes-devtools/gdbc6x/gdbc6x_git.bbrecipes-devtools/gdbc6x/gdbc6x/init new file +48
-0@@ -0,0 +1,48 @@ +#!/bin/bash + +GDB_DEVICE_NAME='/dev/gdbtty$i' +DSP_FIRMWARE_NAME='/lib/firmware/dra7-dsp$[$i+1]-fw.xe66' + +DSP_L2_GLOBAL_OFFSET="40000000" +DSP_L2_GLOBAL_SHIFT="00800000" + +case "$1" in + start) + + dsp_core_l2_offset=$DSP_L2_GLOBAL_OFFSET + + i=0 + while [ -c "`eval echo $GDB_DEVICE_NAME`" ] + do + dsp_firmware=`eval echo $DSP_FIRMWARE_NAME` + + if [ -f "`eval echo $DSP_FIRMWARE_NAME`" ] + then + eval echo "Initializing $GDB_DEVICE_NAME based on $DSP_FIRMWARE_NAME ..." + + gdb_data_local=`eval readelf -s "$DSP_FIRMWARE_NAME" | \ + grep 'gdb_globalData' | \ + awk '{print $2}'` + + echo "gdb_globalData (local) = $gdb_data_local" + printf "gdb_globalData (global) = %X\n" \ + $[0x$gdb_data_local + 0x$dsp_core_l2_offset] + + + printf "%X\n" $[0x$gdb_data_local + 0x$dsp_core_l2_offset] \ + >> `eval echo $GDB_DEVICE_NAME` + fi + i=$[$i + 1] + dsp_core_l2_offset=`printf "%X" $[0x$dsp_core_l2_offset + 0x$DSP_L2_GLOBAL_SHIFT]` + done + ;; + stop) + # Nothing to be done. + ;; + *) + echo "Usage: $0 {start|stop}" + exit 1 + ;; +esac + +recipes-devtools/gdbc6x/gdbc6x_git.bb new file +0
-0
recipes-devtools/gdbc6x/gdbc6x_git.bb line 3
Quoted 3 lines
recipes-devtools/gdbc6x/gdbc6x_git.bb new file +3
-0@@ -0,0 +1,48 @@ +DESCRIPTION="GNU debugger for TI C6X DSP." + +LICENSE = "GPLv3+"
Have you run this GPLv3 instance by OSRB yet?
recipes-devtools/gdbc6x/gdbc6x_git.bb line 7
Quoted 4 lines
recipes-devtools/gdbc6x/gdbc6x_git.bb new file +4
-0+SECTION = "devel" +DEPENDS = "expat ncurses readline" + +LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f"
A bit of consistency with variable ordering, indentation etc. would be much appreciated. I don't require patches to be passed through oe-stylize script from meta-oe (yet), but please keep it neat. Thanks.
Quoted 48 lines
recipes-devtools/gdbc6x/gdbc6x_git.bb new file +40
-0+include gdbc6x.inc + +PR = "${INC_PR}.0" + +DEPENDS = "ncurses bison texinfo flex gettext" + +RDEPENDS_${PN} = "gdbserver-c6x gdbserverproxy-module-drv" + +S = "${WORKDIR}/git/gdbc6x" + +SRC_URI_append = " \ + file://init \ +" + +inherit update-rc.d + +INITSCRIPT_NAME = "gdbserverproxy" +INITSCRIPT_PARAMS = "defaults 95" + +inherit gettext + +PARALLEL_MAKE = "" + +do_configure () { + cd ${S} + ./configure --program-suffix=c6x --target=tic6x-elf-tirtos --host=${HOST_SYS} --prefix=${S}/install_gdb +} + +do_install () { + make install + + # Custom install to prevent conflict with standard GDB. + install -d ${D}${bindir} + install -d ${D}${includedir} + install -m 755 ${S}/install_gdb/bin/gdbc6x ${D}${bindir} + cp -rf ${S}/install_gdb/include/* ${D}${includedir} + + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/gdbserverproxy +}Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti
Re: [PATCH 3/3] gdbc6x: Add version 1.1.0
Quoted 68 lines · Denys Dmytriyenko
Quoted 67 lines · Jacob Stiffler
* The gdbc6x utility provides remote gdb capabilities for C6x DSP cores.
Signed-off-by Jacob Stiffler <[email protected]>--- recipes-devtools/gdbc6x/gdbc6x/init | 48 +++++++++++++++++++++++++++++++++ recipes-devtools/gdbc6x/gdbc6x_git.bb | 48 +++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+)create mode 100644 recipes-devtools/gdbc6x/gdbc6x/init create mode 100644 recipes-devtools/gdbc6x/gdbc6x_git.bb
recipes-devtools/gdbc6x/gdbc6x/init new file +48
-0@@ -0,0 +1,48 @@ +#!/bin/bash + +GDB_DEVICE_NAME='/dev/gdbtty$i' +DSP_FIRMWARE_NAME='/lib/firmware/dra7-dsp$[$i+1]-fw.xe66' + +DSP_L2_GLOBAL_OFFSET="40000000" +DSP_L2_GLOBAL_SHIFT="00800000" + +case "$1" in + start) + + dsp_core_l2_offset=$DSP_L2_GLOBAL_OFFSET + + i=0 + while [ -c "`eval echo $GDB_DEVICE_NAME`" ] + do + dsp_firmware=`eval echo $DSP_FIRMWARE_NAME` + + if [ -f "`eval echo $DSP_FIRMWARE_NAME`" ] + then + eval echo "Initializing $GDB_DEVICE_NAME based on $DSP_FIRMWARE_NAME ..." + + gdb_data_local=`eval readelf -s "$DSP_FIRMWARE_NAME" | \ + grep 'gdb_globalData' | \ + awk '{print $2}'` + + echo "gdb_globalData (local) = $gdb_data_local" + printf "gdb_globalData (global) = %X\n" \ + $[0x$gdb_data_local + 0x$dsp_core_l2_offset] + + + printf "%X\n" $[0x$gdb_data_local + 0x$dsp_core_l2_offset] \ + >> `eval echo $GDB_DEVICE_NAME` + fi + i=$[$i + 1] + dsp_core_l2_offset=`printf "%X" $[0x$dsp_core_l2_offset + 0x$DSP_L2_GLOBAL_SHIFT]` + done + ;; + stop) + # Nothing to be done. + ;; + *) + echo "Usage: $0 {start|stop}" + exit 1 + ;; +esac + +recipes-devtools/gdbc6x/gdbc6x_git.bb new file +0
-0
Quoted 9 lines
recipes-devtools/gdbc6x/gdbc6x_git.bb line 3
Quoted 7 lines
index 0000000..9fc95fe
recipes-devtools/gdbc6x/gdbc6x_git.bb new file +3
-0@@ -0,0 +1,48 @@ +DESCRIPTION="GNU debugger for TI C6X DSP." + +LICENSE = "GPLv3+"Have you run this GPLv3 instance by OSRB yet?
This has already gone through the OSRB when this was released for keystone.
Quoted 8 lines
recipes-devtools/gdbc6x/gdbc6x_git.bb line 7
Quoted 4 lines
recipes-devtools/gdbc6x/gdbc6x_git.bb new file +4
-0+SECTION = "devel" +DEPENDS = "expat ncurses readline" + +LIC_FILES_CHKSUM = "file://debian/copyright;md5=bf0fe2872eb3dfeebb2cbe38206fe81f"A bit of consistency with variable ordering, indentation etc. would be much appreciated. I don't require patches to be passed through oe-stylize script from meta-oe (yet), but please keep it neat. Thanks.
I'll take a look at the script and make the updates.
Quoted 48 lines
Quoted 48 lines
recipes-devtools/gdbc6x/gdbc6x_git.bb new file +40
-0+include gdbc6x.inc + +PR = "${INC_PR}.0" + +DEPENDS = "ncurses bison texinfo flex gettext" + +RDEPENDS_${PN} = "gdbserver-c6x gdbserverproxy-module-drv" + +S = "${WORKDIR}/git/gdbc6x" + +SRC_URI_append = " \ + file://init \ +" + +inherit update-rc.d + +INITSCRIPT_NAME = "gdbserverproxy" +INITSCRIPT_PARAMS = "defaults 95" + +inherit gettext + +PARALLEL_MAKE = "" + +do_configure () { + cd ${S} + ./configure --program-suffix=c6x --target=tic6x-elf-tirtos --host=${HOST_SYS} --prefix=${S}/install_gdb +} + +do_install () { + make install + + # Custom install to prevent conflict with standard GDB. + install -d ${D}${bindir} + install -d ${D}${includedir} + install -m 755 ${S}/install_gdb/bin/gdbc6x ${D}${bindir} + cp -rf ${S}/install_gdb/include/* ${D}${includedir} + + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/gdbserverproxy +}Signature · 7 lines
1.7.9.5 -- _______________________________________________ meta-ti mailing list [email protected] https://lists.yoctoproject.org/listinfo/meta-ti