1- To initialize your local repository using the OMNIROM trees to build SHRP, use a command like this:
mkdir shrp
cd shrp
repo init -u https://github.com/SHRP/manifest.git -b v3_11.0
2- Then to sync up:
repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags
3- Put this folder on
git clone https://github.com/Iceows/android_device_huawei_twrp-common device/huawei/twrp-common -b android-11
git clone https://github.com/shiroyashik/shrp_android_device_huawei_johnson device/huawei/johnson -b android-11
git clone https://github.com/iceows/android_vendor_omni vendor/omni -b android-11.0
4- Apply patch
./device/huawei/twrp-common/patches/apply-patches.sh
5- Then to build for a device with recovery partition:
. build/envsetup.sh
lunch twrp_johnson-eng
mka recoveryimage
or
export ALLOW_MISSING_DEPENDENCIES=true; source build/envsetup.sh; lunch twrp_johnson-eng; mka recoveryimage
6- The output dir
shrp/out/target/product/johnson