mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
2e6adf3682
Update to dtc to 1.7.1. Change tarball to gzip and drop upstreamed patch 010-both-libraries.patch. Disable tests. Changes sinve v1.7.0 include: * dtc * Fix check for 10-bit I2C addresses * Improve documentation of -@ option * Update to libyaml >= 0.2.3 * Improvements & fixes for device graph checks * Add -L / --local-fixups option * Add check for length of interrupt-map properties * libfdt * Add fdt_path_getprop_namelen() * Add fdt_get_symbol() and fdt_get_symbol_namelen() * Correct documentation of fdt_path_offset() * Correct documentation of fdt_appendprop_addrrange() * Validate aliases is fdt_get_alias_namelen() * Don't overwrite phandles when applying overlays * Require Python 3 * pylibfdt * Support boolean properties * Fixes for current Python versions * General * Assorted bugfixes * Assorted build improvements * Assorted typo fixes in docs * Some additional testcases * Move to GitHub Actions based CI Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu> Link: https://github.com/openwrt/openwrt/pull/16411 Signed-off-by: Robert Marko <robimarko@gmail.com>
108 lines
2.8 KiB
Makefile
108 lines
2.8 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Copyright (C) 2016-2019 Yousong Zhou <yszhou4tech@gmail.com>
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=dtc
|
|
PKG_VERSION:=1.7.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_HASH:=9532f10098455711a4da37816fd567dfc8523bb01f59ad6c44887a112e553d9e
|
|
PKG_SOURCE_URL:=@KERNEL/software/utils/dtc
|
|
|
|
PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
PKG_LICENSE_FILES:=GPL
|
|
PKG_CPE_ID:=cpe:/a:dtc_project:dtc
|
|
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/meson.mk
|
|
|
|
define Package/dtc
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Device Tree Compiler
|
|
URL:=https://git.kernel.org/pub/scm/utils/dtc/dtc.git
|
|
endef
|
|
|
|
define Package/dtc/description
|
|
Device Tree Compiler for Flat Device Trees Device Tree Compiler, dtc, takes
|
|
as input a device-tree in a given format and outputs a device-tree in another
|
|
format for booting kernels on embedded systems.
|
|
endef
|
|
|
|
define Package/dtc/config
|
|
config DTC_STATIC_BUILD
|
|
depends on PACKAGE_dtc
|
|
bool "Build dtc as static binary"
|
|
default n
|
|
help
|
|
Builds dtc as a static binary.
|
|
This is usefull in order to export live DTS from a device running
|
|
various vendor modified OpenWrt versions.
|
|
endef
|
|
|
|
define Package/dtc/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/dtc $(1)/usr/bin
|
|
endef
|
|
|
|
|
|
# See Documentation/manual.txt for details about each utility
|
|
define Package/fdt-utils
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Flat Device Tree Utilities
|
|
URL:=https://git.kernel.org/pub/scm/utils/dtc/dtc.git
|
|
DEPENDS:=+libfdt
|
|
endef
|
|
|
|
define Package/fdt-utils/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/convert-dtsv0 $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fdtdump $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fdtget $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fdtput $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fdtoverlay $(1)/usr/bin
|
|
endef
|
|
|
|
|
|
define Package/libfdt
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=a utility library for reading and manipulating dtb files
|
|
URL:=https://git.kernel.org/pub/scm/utils/dtc/dtc.git
|
|
endef
|
|
|
|
define Package/libfdt/description
|
|
This is a library containing functions for manipulating Flat Device Trees.
|
|
endef
|
|
|
|
define Package/libfdt/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdt*.so* $(1)/usr/lib
|
|
endef
|
|
|
|
MESON_ARGS += \
|
|
-Dtests=false \
|
|
-Dtools=true \
|
|
-Dyaml=disabled \
|
|
-Dvalgrind=disabled \
|
|
-Dpython=disabled \
|
|
-Dstatic-build=$(if $(CONFIG_DTC_STATIC_BUILD),true,false)
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,dtc))
|
|
$(eval $(call BuildPackage,fdt-utils))
|
|
$(eval $(call BuildPackage,libfdt))
|