diff options
author | Lukas Rusak <lorusak@gmail.com> | 2023-04-14 17:59:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-14 17:59:18 -0700 |
commit | a3e7d1a9b0f3da68f1571eb3981e74920f536a2f (patch) | |
tree | af938018434bf9a841e5de5e94e8097b8b2b9f98 /tools | |
parent | 915d0ecbbe1a74a2cd2acba8856f825770b512bd (diff) | |
parent | 2cf5b86a1f4ad777115f169cfa361d09ffe80ce2 (diff) |
Merge pull request #19141 from lrusak/edid-decode
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depends/target/Makefile | 5 | ||||
-rw-r--r-- | tools/depends/target/hwdata/Makefile | 28 | ||||
-rw-r--r-- | tools/depends/target/libdisplay-info/Makefile | 54 |
3 files changed, 87 insertions, 0 deletions
diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile index 656f2c7a75..07619fcc77 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 libdisplay-info + endif endif DEPENDS := $(filter-out $(EXCLUDED_DEPENDS),$(DEPENDS)) @@ -160,6 +164,7 @@ libbluray: fontconfig freetype2 $(ICONV) udfread libxml2 libcdio-gplv3: $(ICONV) libcdio: $(ICONV) libcec: p8-platform +libdisplay-info: meson-cross-file hwdata libdrm: meson-cross-file libevdev: libudev libgcrypt: libgpg-error 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) diff --git a/tools/depends/target/libdisplay-info/Makefile b/tools/depends/target/libdisplay-info/Makefile new file mode 100644 index 0000000000..561a5aeb49 --- /dev/null +++ b/tools/depends/target/libdisplay-info/Makefile @@ -0,0 +1,54 @@ +include ../../Makefile.include +DEPS =../../Makefile.include Makefile ../../download-files.include + +LIBNAME=libdisplay-info +VERSION=0.1.1 +ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz +SHA512=8b11c35315f3f16f6853b2ba5daa39c622f2326cfa01d54574beb577efd38d25b8260f7d74c63924473a0487bffdbff727ddc05b12d36e2106b78aadc7d4ff42 +include ../../download-files.include + +MESON_BUILD_TYPE=release + +ifeq ($(DEBUG_BUILD), yes) + MESON_BUILD_TYPE=debug +endif + +# configuration settings +CONFIGURE = $(NATIVEPREFIX)/bin/python3 $(NATIVEPREFIX)/bin/meson \ + --prefix=$(PREFIX) \ + --libdir=lib \ + --buildtype=$(MESON_BUILD_TYPE) + + +ifeq ($(CROSS_COMPILING), yes) +CONFIGURE += --cross-file $(PREFIX)/share/cross-file.meson +export CC=$(CC_FOR_BUILD) +export CXX=$(CXX_FOR_BUILD) +export CFLAGS=$(CFLAGS_FOR_BUILD) +export CXXFLAGS=$(CXXFLAGS_FOR_BUILD) +else +export CC CXX CFLAGS CXXFLAGS +endif +export PKG_CONFIG_LIBDIR=$(PREFIX)/share/pkgconfig + +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); rm -rf build; mkdir -p build + cd $(PLATFORM); $(CONFIGURE) . build + cd $(PLATFORM)/build; $(NATIVEPREFIX)/bin/ninja -v + cd $(PLATFORM)/build; $(NATIVEPREFIX)/bin/ninja -v install + touch $@ + +clean: + $(MAKE) -C $(PLATFORM) clean + rm -f .installed-$(PLATFORM) + +distclean: + rm -rf $(PLATFORM) .installed-$(PLATFORM) |