mirror of
https://git.proxmox.com/git/pve-firmware
synced 2025-04-29 20:28:04 +00:00
buildsys: use shorter variable for builddir in target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
391ece2819
commit
bdd992a884
24
Makefile
24
Makefile
@ -39,20 +39,20 @@ fw.list: fwlist-6.2.6-1-pve
|
|||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
$(BUILDDIR): linux-firmware.git/WHENCE dvb-firmware.git/README fw.list
|
$(BUILDDIR): linux-firmware.git/WHENCE dvb-firmware.git/README fw.list
|
||||||
rm -rf $(BUILDDIR) $(BUILDDIR).tmp
|
rm -rf $@ $@.tmp
|
||||||
mkdir -p $(BUILDDIR).tmp/lib/firmware
|
mkdir -p $@.tmp/lib/firmware
|
||||||
cd linux-firmware.git; ./copy-firmware.sh -v ../$(BUILDDIR).tmp/lib/firmware/
|
cd linux-firmware.git; ./copy-firmware.sh -v ../$@.tmp/lib/firmware/
|
||||||
./assemble-firmware.pl fw.list $(BUILDDIR).tmp/lib/firmware
|
./assemble-firmware.pl fw.list $@.tmp/lib/firmware
|
||||||
find $(BUILDDIR).tmp/lib/firmware -empty -type d -delete
|
find $@.tmp/lib/firmware -empty -type d -delete
|
||||||
install -d $(BUILDDIR).tmp/usr/share/doc/pve-firmware
|
install -d $@.tmp/usr/share/doc/pve-firmware
|
||||||
cp linux-firmware.git/WHENCE $(BUILDDIR).tmp/usr/share/doc/pve-firmware/README
|
cp linux-firmware.git/WHENCE $@.tmp/usr/share/doc/pve-firmware/README
|
||||||
install -d $(BUILDDIR).tmp/usr/share/doc/pve-firmware/licenses
|
install -d $@.tmp/usr/share/doc/pve-firmware/licenses
|
||||||
cp linux-firmware.git/LICEN[CS]E* $(BUILDDIR).tmp/usr/share/doc/pve-firmware/licenses
|
cp linux-firmware.git/LICEN[CS]E* $@.tmp/usr/share/doc/pve-firmware/licenses
|
||||||
# we only compress big ones that almost definitively ain't required in the initrd
|
# we only compress big ones that almost definitively ain't required in the initrd
|
||||||
# or are so big and unbuyable (netronome...)
|
# or are so big and unbuyable (netronome...)
|
||||||
cd $(BUILDDIR).tmp/lib/firmware; find . -type f \( -name 'i[wb][lt]*' -o -path '*/netronome/*' \) -print0 | xargs -0 -n1 -P0 -- xz -C crc32
|
cd $@.tmp/lib/firmware; find . -type f \( -name 'i[wb][lt]*' -o -path '*/netronome/*' \) -print0 | xargs -0 -n1 -P0 -- xz -C crc32
|
||||||
cd $(BUILDDIR).tmp/lib/firmware; find . -xtype l -print0 | xargs -0 -n1 -P0 -- sh -c 'ln -sf "$$(readlink "$$0").xz" "$$0"; mv "$$0" "$$0.xz"'
|
cd $@.tmp/lib/firmware; find . -xtype l -print0 | xargs -0 -n1 -P0 -- sh -c 'ln -sf "$$(readlink "$$0").xz" "$$0"; mv "$$0" "$$0.xz"'
|
||||||
mv $(BUILDDIR).tmp $(BUILDDIR)
|
mv $@.tmp $@
|
||||||
|
|
||||||
# upgrade to current master
|
# upgrade to current master
|
||||||
.PHONY: update_modules
|
.PHONY: update_modules
|
||||||
|
Loading…
Reference in New Issue
Block a user