Skip to content

Commit dcdd195

Browse files
committed
Makefile: Add SYS_PREFIX var for firmware location
Distros without unified /usr will want to set this to /. Signed-off-by: Hector Martin <[email protected]>
1 parent 8518e63 commit dcdd195

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
PREFIX=/usr/local
2+
SYS_PREFIX=$(PREFIX)
23
CONFIG_DIR=/etc/default
34
BIN_DIR=$(PREFIX)/bin
45
SCRIPTS=asahi-fwextract update-m1n1
@@ -27,7 +28,7 @@ install: all
2728
install -m0644 -t $(DESTDIR)/etc etc/m1n1.conf
2829
install -dD $(DESTDIR)$(PREFIX)/share/asahi-scripts
2930
install -m0644 -t $(DESTDIR)$(PREFIX)/share/asahi-scripts functions.sh
30-
install -dD $(DESTDIR)/lib/firmware/vendor
31+
install -dD $(DESTDIR)/$(SYS_PREFIX)/lib/firmware/vendor
3132

3233
install-mkinitcpio: install
3334
install -dD $(DESTDIR)$(PREFIX)/lib/initcpio/install

0 commit comments

Comments
 (0)