mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-18 21:28:02 +00:00
scripts/mkits.sh: DT overlays don't need a loadaddr
DT overlays do not need relocation in order to be applied, so drop defining the load address for dtbos. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
a5005508f0
commit
cff3786bd5
@ -88,11 +88,6 @@ if [ -n "${COMPATIBLE}" ]; then
|
|||||||
COMPATIBLE_PROP="compatible = \"${COMPATIBLE}\";"
|
COMPATIBLE_PROP="compatible = \"${COMPATIBLE}\";"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$DTOVERLAY" ] && {
|
|
||||||
dtbsize=$(wc -c "$DTB" | awk '{print $1}')
|
|
||||||
DTADDR=$(printf "0x%08x" $(($LOAD_ADDR - $dtbsize)) )
|
|
||||||
}
|
|
||||||
|
|
||||||
[ "$FDTADDR" ] && {
|
[ "$FDTADDR" ] && {
|
||||||
DTADDR="$FDTADDR"
|
DTADDR="$FDTADDR"
|
||||||
}
|
}
|
||||||
@ -170,7 +165,6 @@ OVCONFIGS=""
|
|||||||
ovnode="fdt-$ovname"
|
ovnode="fdt-$ovname"
|
||||||
ovsize=$(wc -c "$overlay_blob" | awk '{print $1}')
|
ovsize=$(wc -c "$overlay_blob" | awk '{print $1}')
|
||||||
echo "$ovname ($overlay_blob) : $ovsize" >&2
|
echo "$ovname ($overlay_blob) : $ovsize" >&2
|
||||||
DTADDR=$(printf "0x%08x" $(($DTADDR - $ovsize)))
|
|
||||||
FDTOVERLAY_NODE="$FDTOVERLAY_NODE
|
FDTOVERLAY_NODE="$FDTOVERLAY_NODE
|
||||||
|
|
||||||
$ovnode {
|
$ovnode {
|
||||||
@ -179,7 +173,6 @@ OVCONFIGS=""
|
|||||||
data = /incbin/(\"${overlay_blob}\");
|
data = /incbin/(\"${overlay_blob}\");
|
||||||
type = \"flat_dt\";
|
type = \"flat_dt\";
|
||||||
arch = \"${ARCH}\";
|
arch = \"${ARCH}\";
|
||||||
load = <${DTADDR}>;
|
|
||||||
compression = \"none\";
|
compression = \"none\";
|
||||||
hash${REFERENCE_CHAR}1 {
|
hash${REFERENCE_CHAR}1 {
|
||||||
algo = \"crc32\";
|
algo = \"crc32\";
|
||||||
|
Loading…
Reference in New Issue
Block a user