aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/depends/target/Makefile4
-rw-r--r--tools/depends/target/hwdata/Makefile28
2 files changed, 32 insertions, 0 deletions
diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile
index 656f2c7a75..7910f7558a 100644
--- a/tools/depends/target/Makefile
+++ b/tools/depends/target/Makefile
@@ -136,6 +136,10 @@ ifeq ($(OS),linux)
DEPENDS += wayland waylandpp wayland-protocols webos-wayland-extensions webos-userland
EXCLUDED_DEPENDS += dbus libcec linux-system-x11-libs pipewire mesa
endif
+
+ ifneq (,$(findstring gbm,$(TARGET_PLATFORM)))
+ DEPENDS += hwdata
+ endif
endif
DEPENDS := $(filter-out $(EXCLUDED_DEPENDS),$(DEPENDS))
diff --git a/tools/depends/target/hwdata/Makefile b/tools/depends/target/hwdata/Makefile
new file mode 100644
index 0000000000..8e1155e59d
--- /dev/null
+++ b/tools/depends/target/hwdata/Makefile
@@ -0,0 +1,28 @@
+include ../../Makefile.include
+DEPS =../../Makefile.include Makefile ../../download-files.include
+
+LIBNAME=hwdata
+VERSION=0.368
+ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz
+SHA512=a38adffa503f6f37ddefbad9a0fe9694605ffe54781fc88dd91937a09a54a7de70e027138f34a64bc3a701ab91656c1ae2dc938ed7cb0f73652d34a2ae917690
+include ../../download-files.include
+
+all: .installed-$(PLATFORM)
+
+download: $(TARBALLS_LOCATION)/$(ARCHIVE)
+
+$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
+ rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+ cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+
+.installed-$(PLATFORM): $(PLATFORM)
+ cd $(PLATFORM); ./configure --prefix=$(PREFIX) --datarootdir=$(PREFIX)/share --disable-blacklist
+ cd $(PLATFORM); make install
+ touch $@
+
+clean:
+ $(MAKE) -C $(PLATFORM) clean
+ rm -f .installed-$(PLATFORM)
+
+distclean:
+ rm -rf $(PLATFORM) .installed-$(PLATFORM)