201811: Debug Image only fix: Let individual make files dictate the source path (#3202)
This commit is contained in:
parent
d2e6daa3e4
commit
bba61eb838
22
dbg_files.sh
22
dbg_files.sh
@ -1,26 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Provie file paths to archive for debug image as relative to src subdir
|
||||
# Provide file paths to archive for debug image as relative to src subdir
|
||||
#
|
||||
SRC_DIR_LIST="\
|
||||
libteam \
|
||||
lldpd \
|
||||
libnl3 \
|
||||
radvd \
|
||||
redis \
|
||||
snmpd \
|
||||
sonic-dbsyncd \
|
||||
sonic-frr \
|
||||
sonic-platform-common \
|
||||
sonic-platform-daemons \
|
||||
sonic-py-swsssdk \
|
||||
sonic-sairedis \
|
||||
sonic-snmpagent \
|
||||
sonic-swss \
|
||||
sonic-swss-common \
|
||||
tacacs"
|
||||
|
||||
for i in $SRC_DIR_LIST
|
||||
for i in $debug_src_archive
|
||||
do
|
||||
find $i/ -name "*.c" -o -name "*.cpp" -o -name "*.h" -o -name "*.hpp" -type f
|
||||
done
|
||||
|
@ -11,3 +11,8 @@ SONIC_MAKE_DEBS += $(FRR)
|
||||
FRR_DBG = frr-dbgsym_$(FRR_VERSION)-sonic-$(FRR_SUBVERSION)_amd64.deb
|
||||
$(eval $(call add_derived_package,$(FRR),$(FRR_DBG)))
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += sonic-frr
|
||||
|
||||
|
@ -46,3 +46,8 @@ $(eval $(call add_derived_package,$(LIBNL3),$(LIBNL_CLI)))
|
||||
LIBNL_CLI_DEV = libnl-cli-3-dev_$(LIBNL3_VERSION)_amd64.deb
|
||||
$(LIBNL_CLI_DEV)_DEPENDS += $(LIBNL_CLI) $(LIBNL_GENL3_DEV) $(LIBNL_NF3_DEV) $(LIBNL_ROUTE3_DEV)
|
||||
$(eval $(call add_derived_package,$(LIBNL3),$(LIBNL_CLI_DEV)))
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += libnl3
|
||||
|
@ -19,3 +19,9 @@ $(eval $(call add_derived_package,$(LIBTEAM),$(LIBTEAMDCT)))
|
||||
LIBTEAM_UTILS = libteam-utils_$(LIBTEAM_VERSION)_amd64.deb
|
||||
$(LIBTEAM_UTILS)_DEPENDS += $(LIBTEAMDCT)
|
||||
$(eval $(call add_derived_package,$(LIBTEAM),$(LIBTEAM_UTILS)))
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += libteam
|
||||
|
||||
|
@ -15,3 +15,9 @@ $(eval $(call add_derived_package,$(LLDPD),$(LIBLLDPCTL)))
|
||||
export LLDPD_VERSION
|
||||
export LLDPD
|
||||
export LIBLLDPCTL
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += lldpd
|
||||
|
||||
|
@ -7,3 +7,10 @@ export RADVD_VERSION
|
||||
RADVD = radvd_$(RADVD_VERSION)_amd64.deb
|
||||
$(RADVD)_SRC_PATH = $(SRC_PATH)/radvd
|
||||
SONIC_MAKE_DEBS += $(RADVD)
|
||||
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += radvd
|
||||
|
||||
|
@ -13,3 +13,9 @@ REDIS_SENTINEL = redis-sentinel_$(REDIS_VERSION)_amd64.deb
|
||||
$(REDIS_SENTINEL)_DEPENDS += $(REDIS_SERVER)
|
||||
$(REDIS_SENTINEL)_RDEPENDS += $(REDIS_SERVER)
|
||||
$(eval $(call add_derived_package,$(REDIS_TOOLS),$(REDIS_SENTINEL)))
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += redis
|
||||
|
||||
|
@ -59,3 +59,10 @@ LIBSAIMETADATA_DBG = libsaimetadata-dbg_1.0.0_amd64.deb
|
||||
$(LIBSAIMETADATA_DBG)_DEPENDS += $(LIBSAIMETADATA)
|
||||
$(LIBSAIMETADATA_DBG)_RDEPENDS += $(LIBSAIMETADATA)
|
||||
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIMETADATA_DBG)))
|
||||
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += sonic-sairedis
|
||||
|
||||
|
@ -53,3 +53,9 @@ TKMIB = tkmib_$(SNMPD_VERSION_FULL)_all.deb
|
||||
$(TKMIB)_DEPENDS += $(LIBSNMP_PERL)
|
||||
$(TKMIB)_RDEPENDS += $(LIBSNMP_PERL)
|
||||
$(eval $(call add_derived_package,$(LIBSNMP_BASE),$(TKMIB)))
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += snmpd
|
||||
|
||||
|
@ -19,3 +19,9 @@ LIBSWSSCOMMON_DBG = libswsscommon-dbg_1.0.0_amd64.deb
|
||||
$(LIBSWSSCOMMON_DBG)_DEPENDS += $(LIBSWSSCOMMON)
|
||||
$(LIBSWSSCOMMON_DBG)_RDEPENDS += $(LIBSWSSCOMMON)
|
||||
$(eval $(call add_derived_package,$(LIBSWSSCOMMON),$(LIBSWSSCOMMON_DBG)))
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += sonic-swss-common
|
||||
|
||||
|
@ -11,3 +11,9 @@ SWSS_DBG = swss-dbg_1.0.0_amd64.deb
|
||||
$(SWSS_DBG)_DEPENDS += $(SWSS)
|
||||
$(SWSS_DBG)_RDEPENDS += $(SWSS)
|
||||
$(eval $(call add_derived_package,$(SWSS),$(SWSS_DBG)))
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += sonic-swss
|
||||
|
||||
|
@ -30,3 +30,10 @@ $(LIBNSS_TACPLUS)_SRC_PATH = $(SRC_PATH)/tacacs/nss
|
||||
SONIC_MAKE_DEBS += $(LIBNSS_TACPLUS)
|
||||
|
||||
SONIC_STRETCH_DEBS += $(LIBPAM_TACPLUS) $(LIBNSS_TACPLUS)
|
||||
|
||||
|
||||
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
|
||||
# are archived into debug one image to facilitate debugging.
|
||||
#
|
||||
DBG_SRC_ARCHIVE += tacacs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user