diff options
| -rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb index 2f1b0bfe39..5a7773e084 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp_5.7.3.bb | |||
| @@ -151,6 +151,7 @@ do_install_ptest() { | |||
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | SYSROOT_PREPROCESS_FUNCS += "net_snmp_sysroot_preprocess" | 153 | SYSROOT_PREPROCESS_FUNCS += "net_snmp_sysroot_preprocess" |
| 154 | SNMP_DBGDIR = "/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" | ||
| 154 | 155 | ||
| 155 | net_snmp_sysroot_preprocess () { | 156 | net_snmp_sysroot_preprocess () { |
| 156 | if [ -e ${D}${bindir}/net-snmp-config ]; then | 157 | if [ -e ${D}${bindir}/net-snmp-config ]; then |
| @@ -162,6 +163,12 @@ net_snmp_sysroot_preprocess () { | |||
| 162 | -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \ | 163 | -e "s@^includedir=.*@includedir=${STAGING_INCDIR}@g" \ |
| 163 | -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \ | 164 | -e "s@^libdir=.*@libdir=${STAGING_LIBDIR}@g" \ |
| 164 | -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=${S}@g" \ | 165 | -e "s@^NSC_SRCDIR=.*@NSC_SRCDIR=${S}@g" \ |
| 166 | -e "s@-fdebug-prefix-map=${SNMP_DBGDIR}@-fdebug-prefix-map=${WORKDIR}=${SNMP_DBGDIR}@g" \ | ||
| 167 | -e "s@-fdebug-prefix-map= -fdebug-prefix-map=@-fdebug-prefix-map=${STAGING_DIR_NATIVE}= \ | ||
| 168 | -fdebug-prefix-map=${STAGING_DIR_HOST}=@g" \ | ||
| 169 | -e "s@--sysroot=@--sysroot=${STAGING_DIR_HOST}@g" \ | ||
| 170 | -e "s@--with-libtool-sysroot=@--with-libtool-sysroot=${STAGING_DIR_HOST}@g" \ | ||
| 171 | -e "s@--with-install-prefix=@--with-install-prefix=${D}@g" \ | ||
| 165 | -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/net-snmp-config | 172 | -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/net-snmp-config |
| 166 | fi | 173 | fi |
| 167 | } | 174 | } |
