BuildSystem: Rewrite port compilation system

Now ports define some environment variables, and call a unified bash
script that handles configuration, recompilation and installation.

If a port uses non-configure buildsystem, port script can also specify
custom build and install step.
This commit is contained in:
2024-08-05 15:14:09 +03:00
parent 4d96ae56ac
commit 352c1ddc16
11 changed files with 179 additions and 108 deletions

View File

@@ -49,7 +49,7 @@ create_image () {
build_target all
build_target install
$BANAN_ROOT_DIR/ports/build.sh
$BANAN_ROOT_DIR/ports/update.sh
pushd $BANAN_SYSROOT >/dev/null
run_fakeroot tar cf ${BANAN_SYSROOT_TAR} *
@@ -121,6 +121,7 @@ case $1 in
;;
distclean)
rm -rf $BANAN_BUILD_DIR
rm $BANAN_ROOT_DIR/ports/*/.compile_hash*
;;
*)
build_target $1