On Wed, Jul 29, 2020 at 12:45:25PM -1000, Paul Spooren wrote:
> libyaml is used to process YAML files, a popular human readable
> configuration format. If available during compilation, the
> device-tree-compiler (dtc) will enable YAML as export format.
> 
> The exported YAML files can be validated using dt-schema[0].
> 
> Once available this can be used within a CI to reduce human resources
> spent on reviewing DTS files.
> 
> [0]: https://github.com/robherring/dt-schema
> 
> Signed-off-by: Paul Spooren <[email protected]>
> ---
>  tools/Makefile         |  2 +-
>  tools/libyaml/Makefile | 34 ++++++++++++++++++++++++++++++++++
>  2 files changed, 35 insertions(+), 1 deletion(-)
>  create mode 100644 tools/libyaml/Makefile
> 
> diff --git a/tools/Makefile b/tools/Makefile
> index 9bae09ece6..96de762772 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -26,7 +26,7 @@ tools-y += m4 libtool autoconf autoconf-archive automake 
> flex bison pkgconf mkli
>  tools-y += sstrip make-ext4fs e2fsprogs mtd-utils mkimage
>  tools-y += firmware-utils patch-image quilt padjffs2
>  tools-y += mm-macros missing-macros cmake bc findutils gengetopt patchelf
> -tools-y += mtools dosfstools libressl
> +tools-y += mtools dosfstools libressl libyaml
>  tools-$(CONFIG_TARGET_orion_generic) += wrt350nv2-builder upslug2
>  tools-$(CONFIG_TARGET_x86) += qemu
>  tools-$(CONFIG_TARGET_mxs) += elftosb sdimage
> diff --git a/tools/libyaml/Makefile b/tools/libyaml/Makefile
> new file mode 100644
> index 0000000000..f782ab0a91
> --- /dev/null
> +++ b/tools/libyaml/Makefile
> @@ -0,0 +1,34 @@
> +# SPDX-License-Identifier: GPL-2.0-or-later
> +#
> +# Copyright (C) 2020 Paul Spooren <[email protected]>
> +#
> +# This is free software, licensed under the GNU General Public License v2.
> +# See /LICENSE for more information.
> +#
> +
> +include $(TOPDIR)/rules.mk

You may want to use
include $(TOPDIR)/cmake.mk
as well.

> +
> +PKG_NAME:=libyaml
> +PKG_VERSION:=0.2.5
> +PKG_HASH:=fa240dbf262be053f3898006d502d514936c818e422afdcf33921c63bed9bf2e
> +PKG_RELEASE:=1

PKG_LICENSE?


> +
> +PKG_CPE_ID:=
> +
> +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
> +PKG_SOURCE_URL:=https://codeload.github.com/yaml/libyaml/tar.gz/$(PKG_VERSION)?
> +
> +HOST_BUILD_PARALLEL:=1
> +
> +include $(INCLUDE_DIR)/host-build.mk
> +include $(INCLUDE_DIR)/cmake.mk
> +
> +define Host/Install
> +     $(CP) $(HOST_BUILD_DIR)/yaml-0.1.pc.in 
> $(STAGING_DIR_HOST)/lib/pkgconfig/yaml-0.1.pc

This is the automake pre-processor input file, not the generated .pc file.
While it may work to some degree, you should locate the .pc file which
generated.
What about the other files?

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to