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 | |
parent | 995df6c32c55bf6528f7d0fbb428cbb5e9d133dd (diff) | |
download | pfsense-a9ae8dac693b33f166530276638df1501c5ab4cd.zip pfsense-a9ae8dac693b33f166530276638df1501c5ab4cd.tar.gz |
Fix #5330: Create a package with kernel debug symbols
-rw-r--r-- | tools/builder_common.sh | 10 | ||||
-rw-r--r-- | tools/templates/core_pkg/kernel-debug/metadir/+DESC | 3 | ||||
-rw-r--r-- | tools/templates/core_pkg/kernel-debug/metadir/+MANIFEST | 15 |
3 files changed, 27 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} diff --git a/tools/templates/core_pkg/kernel-debug/metadir/+DESC b/tools/templates/core_pkg/kernel-debug/metadir/+DESC new file mode 100644 index 0000000..00ac37d --- /dev/null +++ b/tools/templates/core_pkg/kernel-debug/metadir/+DESC @@ -0,0 +1,3 @@ +%%PRODUCT_NAME%% kernel debug files + +WWW: %%PRODUCT_URL%% diff --git a/tools/templates/core_pkg/kernel-debug/metadir/+MANIFEST b/tools/templates/core_pkg/kernel-debug/metadir/+MANIFEST new file mode 100644 index 0000000..4335858 --- /dev/null +++ b/tools/templates/core_pkg/kernel-debug/metadir/+MANIFEST @@ -0,0 +1,15 @@ +name: "%%PRODUCT_NAME%%-kernel-debug-%%FLAVOR%%" +version: "%%VERSION%%" +origin: "security/%%PRODUCT_NAME%%-kernel-debug" +comment: <<EOD +%%PRODUCT_NAME%% kernel-debug +EOD +maintainer: development@pfsense.org +prefix: / +deps: { + +} +categories [ security, ] +licenselogic: single +licenses: [ BSD2CLAUSE, ] +options: { } |