This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=$1 | |
[ -f "$FILE" ] || { | |
echo "Provide a config file as argument" | |
exit | |
} | |
write=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/data/jenkins/rom/rootfs-builder-debos-android9: | |
docker run --rm --interactive --tty --device /dev/kvm --user $(id -u) --group-add kvm --workdir /recipes --mount "type=bind,source=$(pwd),destination=/recipes" --security-opt label=disable godebos/debos -m 5G android9-generic.yaml | |
mv ubuntu-touch-android9-armhf.tar.gz /data/web/build.lolinet.com/public/file/halium/ubport/ | |
/data/jenkins/rom/ubports/halium-install: | |
./halium-install /data/web/build.lolinet.com/public/file/halium/ubport/ubuntu-touch-android9-armhf.tar.gz /data/web/build.lolinet.com/public/file/halium/ubport/system.img | |
/data/jenkins/rom/ubports/ubport_GSI: | |
zip -r9 ubport_GSI.zip * -x .git README.md *placeholder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASE_ROM=$1 | |
NEW_ROM=$2 | |
PROP_FILES=$3 | |
TMP=/Users/erfanabdi/Desktop/dep_tmp.txt | |
PROP_FILES_ORG=$PROP_FILES.org | |
cp $PROP_FILES $PROP_FILES_ORG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import xml.etree.ElementTree as ET | |
# Parse the compatibility matrix XML | |
compatibility_matrix = ET.parse('<path to compatibility_matrix xml>') | |
# Extract the kernel version and required configs from the XML | |
kernel_version = '4.19.191' | |
required_configs = [] | |
for kernel in compatibility_matrix.findall('.//kernel'): | |
if kernel.attrib['version'] == kernel_version: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#SparseChunks to image Convertor for motorola images by Erfan Abdi | |
#special thanks to superR for header removal script | |
#make sure you have only one image with sparse chunks (system or oem) | |
echo "Converting all SparseChunks to Raw Image" | |
./simg2img *chunk* system.img.raw | |
echo "Removing Moto Header" | |
offset=$(LANG=C grep -aobP -m1 '\x53\xEF' system.img.raw | head -1 | gawk '{print $1 - 1080}') | |
dd if=system.img.raw of=system_moto.img ibs=$offset skip=1 2>&1 |
OlderNewer