general: readme; rename build.sh; clean.sh script

Fix readme
This commit is contained in:
2026-09-13 19:56:16 +02:00
parent f6b2282568
commit e2e4dcae4e
5 changed files with 92 additions and 50 deletions
-49
View File
@@ -1,49 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
export ALLOW_NINJA_ENV=true
export USE_CCACHE=1
export LD_LIBRARY_PATH=/usr/lib:/usr/lib32
export LC_ALL=C
export LANG=C
export LC_CTYPE=C
# export LOCAL_CFLAGS=-Wno-error
BUILD_DIR="./build"
PATCH_DIR="./patches"
MANIFEST_URL="https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git"
MANIFEST_BRANCH="twrp-5.1"
DEVICE_TREE_URL="https://git.cfpi-fpsi.eu:8443/rubenslte/twrp_device_samsung_rubenslte"
KERNEL_URL="https://git.cfpi-fpsi.eu:8443/rubenslte/android_kernel_samsung_rubenslte"
if [ ! -d "${BUILD_DIR}/.repo" ]; then
echo "Creating build directory ${BUILD_DIR} and cloning manifest ${MANIFEST_URL} from branch ${MANIFEST_BRANCH}..."
mkdir -p "${BUILD_DIR}"
cd "${BUILD_DIR}"
repo init --depth 1 -u "${MANIFEST_URL}" -b "${MANIFEST_BRANCH}"
fi
if [ ! -d "${BUILD_DIR}/device/samsung/rubenslte" ]; then
echo "Cloning device tree..."
git clone "${DEVICE_TREE_URL}" "${BUILD_DIR}/device/samsung/rubenslte"
fi
if [ ! -d "${BUILD_DIR}/kernel/samsung/rubenslte" ]; then
echo "Cloning kernel source..."
git clone "${KERNEL_URL}" "${BUILD_DIR}/kernel/samsung/rubenslte"
fi
for patch in "${PATCH_DIR}/*.patch"; do
echo "Applying $(basename "$patch")"
(cd "${BUILD_DIR}" && patch -p1 -N -r- < "$patch" 2>/dev/null || true)
fi
cd "${BUILD_DIR}"
set +u
source build/envsetup.sh
lunch "omni_rubenslte-userdebug"
set -u
mka recoveryimage
echo "Build results in ${BUILD_DIR}/out/target/product/rubenslte"