-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 995 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 995 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# amdxdna-dkms - Convenience Makefile
.PHONY: help update-sources build-deb clean install test
help:
@echo "Available targets:"
@echo " help - Show this help message"
@echo " update-sources - Sync driver and firmware from upstream"
@echo " build-deb - Build Debian package"
@echo " clean - Clean build artifacts"
@echo " install - Install the built package (requires sudo)"
@echo " test - Verify installation"
update-sources:
./scripts/update-from-upstream.sh
build-deb:
dpkg-buildpackage -us -uc -b
clean:
dh clean
rm -f ../*.deb ../*.ddeb ../*.build ../*.buildinfo ../*.changes
install: build-deb
sudo dpkg -i ../amdxdna-dkms_*.deb
test:
@echo "=== DKMS Status ==="
dkms status amdxdna || true
@echo ""
@echo "=== Firmware Files ==="
ls -lR /lib/firmware/updates/amdnpu/ 2>/dev/null || echo "Firmware not installed"
@echo ""
@echo "=== Module Info ==="
modinfo amdxdna 2>/dev/null || echo "Module not loaded/available"