The imx-kobs tool is used to create and write i.MX NAND boot
related boot data structures to NAND flash.

Changes since v1:
- Fix license name
- Add license files
- Add configure options and GLOBAL_LARGE_FILE_OPTION

Signed-off-by: Guillermo Rodriguez <guille.rodrig...@gmail.com>
---
 rules/imx-kobs.in   |  8 ++++++++
 rules/imx-kobs.make | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)
 create mode 100644 rules/imx-kobs.in
 create mode 100644 rules/imx-kobs.make

diff --git a/rules/imx-kobs.in b/rules/imx-kobs.in
new file mode 100644
index 0000000..e00ca24
--- /dev/null
+++ b/rules/imx-kobs.in
@@ -0,0 +1,8 @@
+## SECTION=shell_and_console
+
+config IMX_KOBS
+       tristate
+       prompt "imx-kobs"
+       help
+         The imx-kobs tool is used to create and write i.MX NAND boot
+         related boot data structures to NAND flash.
diff --git a/rules/imx-kobs.make b/rules/imx-kobs.make
new file mode 100644
index 0000000..2883f7a
--- /dev/null
+++ b/rules/imx-kobs.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Guillermo Rodriguez <guille.rodrig...@gmail.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_IMX_KOBS) += imx-kobs
+
+#
+# Paths and names
+#
+IMX_KOBS_VERSION       := 5.5
+IMX_KOBS_SUFFIX                := tar.gz
+IMX_KOBS_MD5           := 48ed9e69e9527d2e98b5cfcbf133d75b
+IMX_KOBS               := imx-kobs-$(IMX_KOBS_VERSION)
+IMX_KOBS_URL           := 
https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/$(IMX_KOBS).$(IMX_KOBS_SUFFIX)
+IMX_KOBS_DIR           := $(BUILDDIR)/$(IMX_KOBS)
+IMX_KOBS_SOURCE                := $(SRCDIR)/$(IMX_KOBS).$(IMX_KOBS_SUFFIX)
+IMX_KOBS_LICENSE       := GPL-2.0-or-later
+IMX_KOBS_LICENSE_FILES := file://COPYING;md5=393a5ca445f6965873eca0259a17f833
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+IMX_KOBS_CONF_TOOL     := autoconf
+IMX_KOBS_CONF_OPT      := \
+       $(CROSS_AUTOCONF_USR) \
+       $(GLOBAL_LARGE_FILE_OPTION)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/imx-kobs.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, imx-kobs)
+       @$(call install_fixup, imx-kobs, PRIORITY, optional)
+       @$(call install_fixup, imx-kobs, SECTION, base)
+       @$(call install_fixup, imx-kobs, AUTHOR, "Guillermo Rodriguez 
<guille.rodrig...@gmail.com>")
+       @$(call install_fixup, imx-kobs, DESCRIPTION, missing)
+
+       @$(call install_copy, imx-kobs, 0, 0, 0755, -, /usr/bin/kobs-ng)
+
+       @$(call install_finish, imx-kobs)
+
+       @$(call touch)
+       
+# vim: syntax=make     
-- 
1.9.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to