diff options
author | Renato Botelho <renato@netgate.com> | 2015-10-22 13:19:44 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-10-22 13:19:44 -0200 |
commit | a9ae8dac693b33f166530276638df1501c5ab4cd (patch) | |
tree | d925398bc063b2a821705547c9ceabc8cad9c8ba /tools/builder_common.sh | |
parent | 995df6c32c55bf6528f7d0fbb428cbb5e9d133dd (diff) | |
download | pfsense-a9ae8dac693b33f166530276638df1501c5ab4cd.zip pfsense-a9ae8dac693b33f166530276638df1501c5ab4cd.tar.gz |
Fix #5330: Create a package with kernel debug symbols
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r-- | tools/builder_common.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 81a9677..41d8043 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -82,6 +82,7 @@ core_pkg_create() { local _flavor="${2}" local _version="${3}" local _root="${4}" + local _filter="${5}" [ -d "${CORE_PKG_TMP}" ] \ && rm -rf ${CORE_PKG_TMP} @@ -106,7 +107,10 @@ core_pkg_create() { if [ -f "${_templates_path}/pkg-plist" ]; then cp ${_templates_path}/pkg-plist ${_plist} else - (cd ${_root} && find . -type f -or -type l | sed 's,^.,,' | sort -u) > ${_plist} + if [ -n "${_filter}" ]; then + _filter="-name ${_filter}" + fi + (cd ${_root} && find . ${_filter} -type f -or -type l | sed 's,^.,,' | sort -u) > ${_plist} fi if [ -f "${_templates_path}/exclude_plist" ]; then @@ -271,6 +275,10 @@ build_all_kernels() { ensure_kernel_exists $KERNEL_DESTDIR + echo -n ">>> Creating pkg of $KERNEL_NAME-debug kernel to staging area..." | tee -a ${LOGFILE} + core_pkg_create kernel-debug ${KERNEL_NAME} ${CORE_PKG_VERSION} ${KERNEL_DESTDIR} \*.symbols + find ${KERNEL_DESTDIR} -name '*.symbols' -type f -delete + echo -n ">>> Creating pkg of $KERNEL_NAME kernel to staging area..." | tee -a ${LOGFILE} core_pkg_create kernel ${KERNEL_NAME} ${CORE_PKG_VERSION} ${KERNEL_DESTDIR} |