first commit

This commit is contained in:
Fabio Belavenuto
2022-07-01 13:57:55 -03:00
commit a08662802d
1085 changed files with 341425 additions and 0 deletions

File diff suppressed because one or more lines are too long

BIN
addons/qjs-dtb/all/usr/sbin/dtc Executable file

Binary file not shown.

BIN
addons/qjs-dtb/all/usr/sbin/qjs Executable file

Binary file not shown.

27
addons/qjs-dtb/install.sh Normal file
View File

@@ -0,0 +1,27 @@
if [ "${1}" = "rd" ]; then
echo "Jumkey's qjs-dtb arpl version - ramdisk time"
# fix executable flag
chmod +x /usr/sbin/dtc
chmod +x /usr/sbin/qjs
# copy file
if [ ! -f model_${PLATFORM_ID%%_*}.dtb ]; then
# Dynamic generation
dtc -I dtb -O dts -o output.dts /etc.defaults/model.dtb
qjs --std /addons/dts.js output.dts output.dts.out
if [ $? -ne 0 ]; then
echo "auto generated dts file is broken"
else
dtc -I dts -O dtb -o model_r2.dtb output.dts.out
cp -vf model_r2.dtb /etc.defaults/model.dtb
cp -vf model_r2.dtb /var/run/model.dtb
fi
else
cp -vf model_${PLATFORM_ID%%_*}.dtb /etc.defaults/model.dtb
cp -vf model_${PLATFORM_ID%%_*}.dtb /var/run/model.dtb
fi
else
echo "Jumkey's qjs-dtb arpl version - sys time"
# copy file
cp -vf /etc.defaults/model.dtb /tmpRoot/etc.defaults/model.dtb
fi

View File

@@ -0,0 +1,16 @@
version: 1
name: qjs-dtb
system: true
description: "Jumkey's script to change model.dtb dynamically"
all:
install-script: "install.sh"
copy: "all"
available-for:
bromolow-3.10.108:
apollolake-4.4.180:
broadwell-4.4.180:
broadwellnk-4.4.180:
denverton-4.4.180:
geminilake-4.4.180:
v1000-4.4.180:
purley-4.4.180: