aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2023-03-14 19:52:09 -0700
committerLukas Rusak <lorusak@gmail.com>2023-04-11 20:00:09 -0700
commit41708ed9a9c7c8d3d4fa13f69a011ddd291c2c91 (patch)
tree885dd4a87b2836500c50bd3317640611fe9953aa /tools/depends/target
parenta39ecab9d744e5fb49eb547013029f1e38a99202 (diff)
tools/depends: add hwdata to linux builds
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
Diffstat (limited to 'tools/depends/target')
-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)