diff options
Diffstat (limited to 'build_helpers')
| -rwxr-xr-x | build_helpers/compile.sh | 4 | ||||
| -rw-r--r-- | build_helpers/progressif.ly.io.sh | 7 | 
2 files changed, 9 insertions, 2 deletions
| diff --git a/build_helpers/compile.sh b/build_helpers/compile.sh index fc97a27..1b1873e 100755 --- a/build_helpers/compile.sh +++ b/build_helpers/compile.sh @@ -13,9 +13,9 @@ OUTNAME="src._kernel._main"  track building_src "Building sources to 'tmp/$OUTNAME'... "  gcc -T linker.ld -m32 -Wl,--build-id=none -nostartfiles -nostdlib -ffreestanding $INPATH -o "tmp/$OUTNAME".o  trackend building_src t -track find_start "Start address is... " +track find_start "Detecting start address... "  BIN_START=$(objdump tmp/src._kernel._main.o -f | grep start | cut -b 15-) -# echo "$BIN_START" +tracknote find_start "Start address is: $BIN_START"  trackend find_start t  # this actually writes three extra nulls, not sure why...  echo "$BIN_START" | xxd -r - | od -t x --endian=little | head | xxd -r - > "bin/$OUTNAME".bin diff --git a/build_helpers/progressif.ly.io.sh b/build_helpers/progressif.ly.io.sh index b163945..3958d90 100644 --- a/build_helpers/progressif.ly.io.sh +++ b/build_helpers/progressif.ly.io.sh @@ -16,6 +16,13 @@ track() {    echo "[${state}] ${desc}"  } +tracknote() { +  local str=$1 +  local msg=$2 +  _line_count=$((_line_count + 1)) +  echo "    - $2" +} +  trackend() {    local str=$1    local state=$2 | 
