Browse Source

create a symlink to latest build log

Signed-off-by: Oliver Pinter <oliver.pntr@gmail.com>
master
Oliver Pinter 5 years ago
parent
commit
d4da70ba10
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      build_hbsd_kernel_64bit.csh

+ 3
- 0
build_hbsd_kernel_64bit.csh View File

@@ -11,6 +11,7 @@ set _current_realdir = `echo ${current_dir} | sed -e 's|\(.*/\)\(.*\.git\)\(/.*\
set _check_toolchain = "${MAKEOBJDIRPREFIX}/___kernel-toolchain_DONE"
set _date=`date "+%Y%m%d%H%M%S"`
set _log="/tmp/${TARGET}-cc-log-${_current_dir}-${_date}"
set _log_last="/tmp/${TARGET}-cc-log-${_current_dir}.last"

if ( "`sysctl -n security.bsd.hardlink_check_uid`" == "1" ) then
echo "build will fail, due to hard security checks"
@@ -37,6 +38,8 @@ if ( ! -d $MAKEOBJDIRPREFIX ) then
mkdir $MAKEOBJDIRPREFIX
endif

ln -sf ${_log} ${_log_last}

if ( ! -f ${_check_toolchain} ) then
(cd /usr/data/source/git/opBSD/${_current_dir}; make -j$__freebsd_mk_jobs -DNO_ROOT KERNCONF=HARDENEDBSD kernel-toolchain) |& tee ${_log} || exit
touch ${_check_toolchain}

Loading…
Cancel
Save