Project

General

Profile

« Previous | Next » 

Revision a9ae8dac

Added by Renato Botelho almost 10 years ago

Fix #5330: Create a package with kernel debug symbols

View differences:

tools/builder_common.sh
82 82
	local _flavor="${2}"
83 83
	local _version="${3}"
84 84
	local _root="${4}"
85
	local _filter="${5}"
85 86

  
86 87
	[ -d "${CORE_PKG_TMP}" ] \
87 88
		&& rm -rf ${CORE_PKG_TMP}
......
106 107
	if [ -f "${_templates_path}/pkg-plist" ]; then
107 108
		cp ${_templates_path}/pkg-plist ${_plist}
108 109
	else
109
		(cd ${_root} && find . -type f -or -type l | sed 's,^.,,' | sort -u) > ${_plist}
110
		if [ -n "${_filter}" ]; then
111
			_filter="-name ${_filter}"
112
		fi
113
		(cd ${_root} && find . ${_filter} -type f -or -type l | sed 's,^.,,' | sort -u) > ${_plist}
110 114
	fi
111 115

  
112 116
	if [ -f "${_templates_path}/exclude_plist" ]; then
......
271 275

  
272 276
		ensure_kernel_exists $KERNEL_DESTDIR
273 277

  
278
		echo -n ">>> Creating pkg of $KERNEL_NAME-debug kernel to staging area..."  | tee -a ${LOGFILE}
279
		core_pkg_create kernel-debug ${KERNEL_NAME} ${CORE_PKG_VERSION} ${KERNEL_DESTDIR} \*.symbols
280
		find ${KERNEL_DESTDIR} -name '*.symbols' -type f -delete
281

  
274 282
		echo -n ">>> Creating pkg of $KERNEL_NAME kernel to staging area..."  | tee -a ${LOGFILE}
275 283
		core_pkg_create kernel ${KERNEL_NAME} ${CORE_PKG_VERSION} ${KERNEL_DESTDIR}
276 284

  

Also available in: Unified diff