Skip to content
This repository has been archived by the owner. It is now read-only.

Kernel Build Type Configuration & Default to NODEBUG #16

Merged
merged 1 commit into from Nov 26, 2018
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
add ability to configure FreeBSD kernel build type, exposing KERNCONF…
… environment variable via json manifest
  • Loading branch information
maxsteciuk committed Nov 26, 2018
commit 406a89c714c26391eb0865a1a604bc1cd2b0e1dd
@@ -37,7 +37,11 @@ if [ ! -f "${TRUEOS_MANIFEST}" ] ; then
return 1
fi
export TRUEOS_MANIFEST=`realpath -q "${TRUEOS_MANIFEST}"`
kernelBuildType=`jq -r '."kernel_build_type"' ${TRUEOS_MANIFEST}`
export KERNCONF=${kernelBuildType}

_manifest_version=`jq -r '."version"' ${TRUEOS_MANIFEST}`

if [ -z "${_manifest_version}" ] ; then
echo "[ERROR] Could not read build manifest! ${TRUEOS_MANIFEST}"
return 1
@@ -410,7 +414,7 @@ make_world(){
}

make_kernel(){
if [ -e "${INTERNAL_RELEASE_OBJDIR}/sys/GENERIC/kernel" ] ; then
if [ -e "${INTERNAL_RELEASE_OBJDIR}/sys/${kernelBuildType}/kernel" ] ; then
echo "[INFO] Base Kernel Unchanged: Re-using base packages"
else
echo "[INFO] Building kernel..."
@@ -6,10 +6,11 @@
"ports-github-org" : "trueos",
"ports-github-repo" : "trueos-ports",
"ports-github-tag" : "ecb08ef2389b550a139526c3f47268ec3b236671",
"kernel_build_type": "GENERIC-NODEBUG",
"base-packages" : {
"name-prefix" : "OS",
"kernel-flags" : {
"default" : []
"default" : []
},
"world-flags" : {
"default" : [],