diff options
author | iximeow <me@iximeow.net> | 2015-11-05 00:57:49 -0800 |
---|---|---|
committer | iximeow <me@iximeow.net> | 2015-11-05 00:57:49 -0800 |
commit | 645e8aa266ca5811937e76587e39d99d3ce411e4 (patch) | |
tree | 8d4c5a52b1128f7b6683e32f611b1651cfa9bab8 | |
parent | ede397ed5b34164b583ed81158e5b49b8fdc1595 (diff) |
-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 |