From 65c68496d39649318194f8a3b8c63c1d3f255574 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Jun 14 2022 08:29:48 +0000 Subject: Update compression patch --- diff --git a/0001-Add-support-for-compressing-firmware-in-copy-firmwar.patch b/0001-Add-support-for-compressing-firmware-in-copy-firmwar.patch index 93d82e4..10bf93b 100644 --- a/0001-Add-support-for-compressing-firmware-in-copy-firmwar.patch +++ b/0001-Add-support-for-compressing-firmware-in-copy-firmwar.patch @@ -20,13 +20,13 @@ diff --git a/Makefile b/Makefile index e1c362f..9a48471 100644 --- a/Makefile +++ b/Makefile -@@ -11,3 +11,7 @@ check: +@@ -11,3 +11,7 @@ install: - mkdir -p $(DESTDIR)$(FIRMWAREDIR) + install -d $(DESTDIR)$(FIRMWAREDIR) ./copy-firmware.sh $(DESTDIR)$(FIRMWAREDIR) + +installcompress: -+ mkdir -p $(DESTDIR)$(FIRMWAREDIR) ++ install -d $(DESTDIR)$(FIRMWAREDIR) + ./copy-firmware.sh -C $(DESTDIR)$(FIRMWAREDIR) diff --git a/copy-firmware.sh b/copy-firmware.sh index 9b46b63..0dd2e5c 100755 @@ -68,11 +68,11 @@ index 9b46b63..0dd2e5c 100755 grep '^File:' WHENCE | sed -e's/^File: *//g' -e's/"//g' | while read f; do - test -f "$f" || continue - $verbose "copying file $f" -- mkdir -p $destdir/$(dirname "$f") +- install -d $destdir/$(dirname "$f") - cp -d "$f" $destdir/"$f" + test -f "$f$cmpxtn" || continue + $verbose "copying file $f$cmpxtn" -+ mkdir -p $destdir/$(dirname "$f$cmpxtn") ++ install -d $destdir/$(dirname "$f$cmpxtn") + cp -d "$f$cmpxtn" $destdir/"$f$cmpxtn" done @@ -80,11 +80,11 @@ index 9b46b63..0dd2e5c 100755 - if test -L "$f"; then - test -f "$destdir/$f" && continue - $verbose "copying link $f" -- mkdir -p $destdir/$(dirname "$f") +- install -d $destdir/$(dirname "$f") + if test -L "$f$cmpxtn"; then + test -f "$destdir/$f$cmpxtn" && continue + $verbose "copying link $f$cmpxtn" -+ mkdir -p $destdir/$(dirname "$f$cmpxtn") ++ install -d $destdir/$(dirname "$f$cmpxtn") cp -d "$f" $destdir/"$f" if test "x$d" != "x"; then @@ -110,10 +110,10 @@ index 9b46b63..0dd2e5c 100755 fi else - $verbose "creating link $f -> $d" -- mkdir -p $destdir/$(dirname "$f") +- install -d $destdir/$(dirname "$f") - ln -sf "$d" "$destdir/$f" + $verbose "creating link $f$cmpxtn -> $d$cmpxtn" -+ mkdir -p $destdir/$(dirname "$f$cmpxtn") ++ install -d $destdir/$(dirname "$f$cmpxtn") + ln -sf "$d$cmpxtn" "$destdir/$f$cmpxtn" fi done