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
FROM ubuntu:18.04 | |
# Update the base | |
RUN apt-get update && apt-get -y upgrade | |
# Install sudo and let anyone in the "users" group run anything | |
RUN apt-get -y install sudo && \ | |
echo '%users ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers | |
RUN apt-get -y install \ |
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
#!/usr/bin/python3 | |
import os | |
import sys | |
import getopt | |
import subprocess | |
### Logging utilities ### | |
log_debug = 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
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo "Usage: repackbootimg <name>" 1>&2 | |
exit 1 | |
fi | |
name="$1" | |
newname="new$1" |
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
#!/sbin/sh | |
# Get the GPT | |
echo "Getting gpt.bin" | |
dd if="/dev/block/mmcblk0" of="/tmp/gpt.bin" bs=512 count=34 | |
# Get the firmware | |
cd "/dev/block/bootdevice/by-name" | |
partitions=$(ls) | |
for p in $partitions; do |
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
# See https://www.atlassian.com/blog/git/alternatives-to-git-submodule-git-subtree | |
git remote add qcacld https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/wlan/qcacld-2.0 | |
git subtree add --prefix drivers/staging/qcacld-2.0 qcacld LA.UM.5.5.r1-02800-8x96.0 |
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
#!/usr/bin/python | |
import os | |
import sys | |
import requests | |
import getopt | |
from xml.etree import ElementTree | |
import subprocess | |
def dequote(s): |