Re: [ptxdist] [PATCH v2] imx-kobs: New package
Hi Ladislav, El mar., 23 oct. 2018 a las 17:10, Ladislav Michl () escribió: > just a side note, changelog bellow is not part of commit log, so it > should be placed bellow "---". Noted, thank you! Guillermo ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH v2] imx-kobs: New package
Reviewed-by: Alexander Dahl Am Dienstag, 23. Oktober 2018, 16:17:32 CEST schrieb Guillermo Rodríguez: > 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 > --- > 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 000..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 000..2883f7a > --- /dev/null > +++ b/rules/imx-kobs.make > @@ -0,0 +1,57 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2018 by Guillermo Rodriguez > +# > +# 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 > ") + @$(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 ___ ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] [PATCH] u-boot: Add support for SPL for non-OMAP CPUs
Add support for installing the SPL binary for non-OMAP CPUs. Also properly remove any files installed in the platform image directory in the clean stage. Signed-off-by: Guillermo Rodriguez --- platforms/u-boot.in | 14 +++--- rules/u-boot.make | 4 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/platforms/u-boot.in b/platforms/u-boot.in index 38684a0..602de46 100644 --- a/platforms/u-boot.in +++ b/platforms/u-boot.in @@ -49,6 +49,13 @@ config U_BOOT_INSTALL_ELF help Installing the U-Boot ELF binary into platform image directory. +config U_BOOT_INSTALL_SPL + prompt "install SPL" + bool + help + Installing the U-Boot SPL (Secondary Program Loader) binary into + platform image directory. + config U_BOOT_INSTALL_MLO prompt "install MLO" bool @@ -57,14 +64,14 @@ config U_BOOT_INSTALL_MLO Installing the U-Boot SPL ("MLO") binary needed for OMAP CPUs into platform image directory. -if U_BOOT_INSTALL_MLO +if U_BOOT_INSTALL_MLO || U_BOOT_INSTALL_SPL config U_BOOT_INSTALL_U_BOOT_IMG prompt "install u-boot.img" bool help Installing the u-boot image with header ("u-boot.img") which is executed - by u-boot SPL ("MLO") into platform image directory. + by u-boot SPL into platform image directory. endif @@ -73,7 +80,8 @@ config U_BOOT_INSTALL_U_BOOT_IMX bool help Installing the U-Boot image with imx header (u-boot.imx) into platform - image directory. Say yes if you are building for freescale i.MX SOC + image directory. Say yes if you are building for freescale i.MX SOCs + and are not using SPL. endif diff --git a/rules/u-boot.make b/rules/u-boot.make index 94aa774..9f69f9d 100644 --- a/rules/u-boot.make +++ b/rules/u-boot.make @@ -69,6 +69,9 @@ endif ifdef PTXCONF_U_BOOT_INSTALL_ELF @install -D -m644 $(U_BOOT_DIR)/u-boot $(IMAGEDIR)/u-boot.elf endif +ifdef PTXCONF_U_BOOT_INSTALL_SPL + @install -D -m644 $(U_BOOT_DIR)/SPL $(IMAGEDIR)/SPL +endif ifdef PTXCONF_U_BOOT_INSTALL_MLO @install -D -m644 $(U_BOOT_DIR)/MLO $(IMAGEDIR)/MLO endif @@ -88,6 +91,7 @@ $(STATEDIR)/u-boot.clean: @$(call targetinfo) @$(call clean_pkg, U_BOOT) @rm -f $(IMAGEDIR)/u-boot.bin $(IMAGEDIR)/u-boot.srec $(IMAGEDIR)/u-boot.elf + @rm -f $(IMAGEDIR)/u-boot.img $(IMAGEDIR)/SPL $(IMAGEDIR)/MLO @rm -f $(IMAGEDIR)/u-boot.imx # vim: syntax=make -- 1.9.1 ___ ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] [PATCH v2] imx-kobs: New package
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 --- 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 000..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 000..2883f7a --- /dev/null +++ b/rules/imx-kobs.make @@ -0,0 +1,57 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Guillermo Rodriguez +# +# 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 ") + @$(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
[ptxdist] [PATCH v4] minicoredumper: New package
Tested-by: Roland Hieber Acked-by: Roland Hieber Tested-by: Alexander Dahl Signed-off-by: Uwe Kleine-König --- Hello, On Tue, Oct 23, 2018 at 03:37:44PM +0200, Alexander Dahl wrote: > what about the minor issues I reported with Message-Id > <4087030.zncrgpGN7O@ada> back in August? ;-) hupsi, I missed not only these, but also the feedback by Roland (even though he only provided his ack/test). So: Changes since v3, sent with Message-Id: 20181023132846.1473-1-u.kleine-koe...@pengutronix.de: - add Tested-by and Ack by Roland and Alexander - make PTXCONF_MINICOREDUMPER tristate (found by Alexander) - fix a tpyo (found by Alexander) rules/minicoredumper.in | 21 rules/minicoredumper.make | 68 +++ 2 files changed, 89 insertions(+) create mode 100644 rules/minicoredumper.in create mode 100644 rules/minicoredumper.make diff --git a/rules/minicoredumper.in b/rules/minicoredumper.in new file mode 100644 index ..cc8008d1c39f --- /dev/null +++ b/rules/minicoredumper.in @@ -0,0 +1,21 @@ +## SECTION=shell_and_console + +config MINICOREDUMPER + tristate + prompt "minicoredumper" + select LIBELF + select JSON_C + help + The minicoredumper project provides a program that handles the + creation of core dump files on Linux. It can produce much smaller + core dump files by making use of sparse files, compression, and + allowing the user to configure what parts of the process memory image + should be dumped. + + Note that there are currently no mechanisms integrated to + automatically register minicoredumper as kernel coredump helper. So + you might want to do + + echo '|/usr/sbin/minicoredumper %P %u %g %s %t %h %e' > /proc/sys/kernel/core_pattern + + by hand to actually make use of it. diff --git a/rules/minicoredumper.make b/rules/minicoredumper.make new file mode 100644 index ..af01ece49805 --- /dev/null +++ b/rules/minicoredumper.make @@ -0,0 +1,68 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Uwe Kleine-Koenig +# +# 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_MINICOREDUMPER) += minicoredumper + +# +# Paths and names +# +MINICOREDUMPER_VERSION := 2.0.1 +MINICOREDUMPER_MD5 := 813b864e0c6a833d14bab244723de6a4 +MINICOREDUMPER := minicoredumper-$(MINICOREDUMPER_VERSION) +MINICOREDUMPER_SUFFIX := tar.xz +MINICOREDUMPER_URL := https://linutronix.de/minicoredumper/files/$(MINICOREDUMPER).$(MINICOREDUMPER_SUFFIX) +MINICOREDUMPER_SOURCE := $(SRCDIR)/$(MINICOREDUMPER).$(MINICOREDUMPER_SUFFIX) +MINICOREDUMPER_DIR := $(BUILDDIR)/$(MINICOREDUMPER) +MINICOREDUMPER_LICENSE := BSD AND LGPL-2.1 +MINICOREDUMPER_LICENSE_FILES := file://COPYING;md5=71827c617ec7b45a0dd23658347cc1e9 + +# +# Prepare +# + +MINICOREDUMPER_CONF_TOOL := autoconf +MINICOREDUMPER_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-silent-rules \ + --without-coreinject \ + --with-minicoredumper \ + --without-minicoredumper_regd \ + --without-minicoredumper_trigger \ + --without-libminicoredumper \ + --without-minicoredumper_demo \ + --without-werror \ + +# +# Target-Install +# + +$(STATEDIR)/minicoredumper.targetinstall: + @$(call targetinfo) + + @$(call install_init, minicoredumper) + @$(call install_fixup, minicoredumper, PRIORITY, optional) + @$(call install_fixup, minicoredumper, SECTION, base) + @$(call install_fixup, minicoredumper, AUTHOR, "Uwe Kleine-Koenig ") + @$(call install_fixup, minicoredumper, DESCRIPTION, missing) + + @$(call install_copy, minicoredumper, 0, 0, 0755, -, /usr/sbin/minicoredumper) + + @$(call install_alternative_tree, minicoredumper, 0, 0, /etc/minicoredumper) + + @$(call install_copy, minicoredumper, 0, 0, 0755, /var/crash/minicoredumper) + + @$(call install_finish, minicoredumper) + + @$(call touch) + +# vim: syntax=make -- 2.19.0 ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH v3] minicoredumper: New package
Hello Uwe, what about the minor issues I reported with Message-Id <4087030.zncrgpGN7O@ada> back in August? ;-) https://www.mail-archive.com/ptxdist@pengutronix.de/msg13290.html Greets Alex Am Dienstag, 23. Oktober 2018, 15:28:46 CEST schrieb Uwe Kleine-König: > Signed-off-by: Uwe Kleine-König > --- > Changes since v2, sent with Message-Id: > 20180814161539.16983-1-u.kleine-koe...@pengutronix.de: > > - drop $(call install_copy, minicoredumper, 0, 0, 0755, /var/crash) > > rules/minicoredumper.in | 21 > rules/minicoredumper.make | 68 +++ > 2 files changed, 89 insertions(+) > create mode 100644 rules/minicoredumper.in > create mode 100644 rules/minicoredumper.make > > diff --git a/rules/minicoredumper.in b/rules/minicoredumper.in > new file mode 100644 > index ..969be8210c88 > --- /dev/null > +++ b/rules/minicoredumper.in > @@ -0,0 +1,21 @@ > +## SECTION=shell_and_console > + > +config MINICOREDUMPER > + bool > + prompt "minicoredumper" > + select LIBELF > + select JSON_C > + help > + The minicoredumper project provides a program that handles the > + creation of core dump files on Linux. It can produce much smaller > + core dump files by making use of sparse files, compression, and > + allowing the user to configure what parts of the process memory image > + should be dumped. > + > + Note that there are currently no mechnisms integrated to > + automatically register minicoredumper as kernel coredump helper. So > + you might want to do > + > + echo '|/usr/sbin/minicoredumper %P %u %g %s %t %h %e' > > /proc/sys/kernel/core_pattern + > + by hand to actually make use of it. > diff --git a/rules/minicoredumper.make b/rules/minicoredumper.make > new file mode 100644 > index ..af01ece49805 > --- /dev/null > +++ b/rules/minicoredumper.make > @@ -0,0 +1,68 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2018 by Uwe Kleine-Koenig > +# > +# 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_MINICOREDUMPER) += minicoredumper > + > +# > +# Paths and names > +# > +MINICOREDUMPER_VERSION := 2.0.1 > +MINICOREDUMPER_MD5 := 813b864e0c6a833d14bab244723de6a4 > +MINICOREDUMPER := minicoredumper-$(MINICOREDUMPER_VERSION) > +MINICOREDUMPER_SUFFIX:= tar.xz > +MINICOREDUMPER_URL := > https://linutronix.de/minicoredumper/files/$(MINICOREDUMPER).$(MINICOREDUMP > ER_SUFFIX) +MINICOREDUMPER_SOURCE := > $(SRCDIR)/$(MINICOREDUMPER).$(MINICOREDUMPER_SUFFIX) +MINICOREDUMPER_DIR > := > $(BUILDDIR)/$(MINICOREDUMPER) > +MINICOREDUMPER_LICENSE := BSD AND LGPL-2.1 > +MINICOREDUMPER_LICENSE_FILES := > file://COPYING;md5=71827c617ec7b45a0dd23658347cc1e9 + > +# > --- > - +# Prepare > +# > --- > - + > +MINICOREDUMPER_CONF_TOOL := autoconf > +MINICOREDUMPER_CONF_OPT := \ > + $(CROSS_AUTOCONF_USR) \ > + --disable-silent-rules \ > + --without-coreinject \ > + --with-minicoredumper \ > + --without-minicoredumper_regd \ > + --without-minicoredumper_trigger \ > + --without-libminicoredumper \ > + --without-minicoredumper_demo \ > + --without-werror \ > + > +# > --- > - +# Target-Install > +# > --- > - + > +$(STATEDIR)/minicoredumper.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, minicoredumper) > + @$(call install_fixup, minicoredumper, PRIORITY, optional) > + @$(call install_fixup, minicoredumper, SECTION, base) > + @$(call install_fixup, minicoredumper, AUTHOR, "Uwe Kleine-Koenig > ") + @$(call install_fixup, minicoredumper, > DESCRIPTION, missing) > + > + @$(call install_copy, minicoredumper, 0, 0, 0755, -, > /usr/sbin/minicoredumper) + > + @$(call install_alternative_tree, minicoredumper, 0, 0, > /etc/minicoredumper) + > + @$(call install_copy, minicoredumper, 0, 0, 0755, > /var/crash/minicoredumper) + > + @$(call install_finish, minicoredumper) > + > + @$(call touch) > + > +# vim: syntax=make ___ ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] [PATCH v3] minicoredumper: New package
Signed-off-by: Uwe Kleine-König --- Changes since v2, sent with Message-Id: 20180814161539.16983-1-u.kleine-koe...@pengutronix.de: - drop $(call install_copy, minicoredumper, 0, 0, 0755, /var/crash) rules/minicoredumper.in | 21 rules/minicoredumper.make | 68 +++ 2 files changed, 89 insertions(+) create mode 100644 rules/minicoredumper.in create mode 100644 rules/minicoredumper.make diff --git a/rules/minicoredumper.in b/rules/minicoredumper.in new file mode 100644 index ..969be8210c88 --- /dev/null +++ b/rules/minicoredumper.in @@ -0,0 +1,21 @@ +## SECTION=shell_and_console + +config MINICOREDUMPER + bool + prompt "minicoredumper" + select LIBELF + select JSON_C + help + The minicoredumper project provides a program that handles the + creation of core dump files on Linux. It can produce much smaller + core dump files by making use of sparse files, compression, and + allowing the user to configure what parts of the process memory image + should be dumped. + + Note that there are currently no mechnisms integrated to + automatically register minicoredumper as kernel coredump helper. So + you might want to do + + echo '|/usr/sbin/minicoredumper %P %u %g %s %t %h %e' > /proc/sys/kernel/core_pattern + + by hand to actually make use of it. diff --git a/rules/minicoredumper.make b/rules/minicoredumper.make new file mode 100644 index ..af01ece49805 --- /dev/null +++ b/rules/minicoredumper.make @@ -0,0 +1,68 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Uwe Kleine-Koenig +# +# 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_MINICOREDUMPER) += minicoredumper + +# +# Paths and names +# +MINICOREDUMPER_VERSION := 2.0.1 +MINICOREDUMPER_MD5 := 813b864e0c6a833d14bab244723de6a4 +MINICOREDUMPER := minicoredumper-$(MINICOREDUMPER_VERSION) +MINICOREDUMPER_SUFFIX := tar.xz +MINICOREDUMPER_URL := https://linutronix.de/minicoredumper/files/$(MINICOREDUMPER).$(MINICOREDUMPER_SUFFIX) +MINICOREDUMPER_SOURCE := $(SRCDIR)/$(MINICOREDUMPER).$(MINICOREDUMPER_SUFFIX) +MINICOREDUMPER_DIR := $(BUILDDIR)/$(MINICOREDUMPER) +MINICOREDUMPER_LICENSE := BSD AND LGPL-2.1 +MINICOREDUMPER_LICENSE_FILES := file://COPYING;md5=71827c617ec7b45a0dd23658347cc1e9 + +# +# Prepare +# + +MINICOREDUMPER_CONF_TOOL := autoconf +MINICOREDUMPER_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-silent-rules \ + --without-coreinject \ + --with-minicoredumper \ + --without-minicoredumper_regd \ + --without-minicoredumper_trigger \ + --without-libminicoredumper \ + --without-minicoredumper_demo \ + --without-werror \ + +# +# Target-Install +# + +$(STATEDIR)/minicoredumper.targetinstall: + @$(call targetinfo) + + @$(call install_init, minicoredumper) + @$(call install_fixup, minicoredumper, PRIORITY, optional) + @$(call install_fixup, minicoredumper, SECTION, base) + @$(call install_fixup, minicoredumper, AUTHOR, "Uwe Kleine-Koenig ") + @$(call install_fixup, minicoredumper, DESCRIPTION, missing) + + @$(call install_copy, minicoredumper, 0, 0, 0755, -, /usr/sbin/minicoredumper) + + @$(call install_alternative_tree, minicoredumper, 0, 0, /etc/minicoredumper) + + @$(call install_copy, minicoredumper, 0, 0, 0755, /var/crash/minicoredumper) + + @$(call install_finish, minicoredumper) + + @$(call touch) + +# vim: syntax=make -- 2.19.0 ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] imx-kobs: New package
On Tue, Oct 23, 2018 at 11:23:36AM +0200, Guillermo Rodríguez wrote: > The imx-kobs tool is used to create and write i.MX NAND boot > related boot data structures to NAND flash. > > Signed-off-by: Guillermo Rodriguez > --- > rules/imx-kobs.in | 8 > rules/imx-kobs.make | 53 > + > 2 files changed, 61 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 000..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 000..49380c2 > --- /dev/null > +++ b/rules/imx-kobs.make > @@ -0,0 +1,53 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2018 by Guillermo Rodriguez > +# > +# 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 := > http://www.freescale.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 := GPLv2 > + > +# > > +# Prepare > +# > > + > +IMX_KOBS_CONF_TOOL := autoconf You need to set the configure options and include $(GLOBAL_LARGE_FILE_OPTION). The rest has already been commented on by others. Michael > + > +# > > +# 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 > ") > + @$(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 -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] imx-kobs: New package
Hei hei, Am Dienstag, 23. Oktober 2018, 14:38:55 CEST schrieb Guillermo Rodriguez Garcia: > El mar., 23 oct. 2018 a las 13:00, Alexander Dahl () escribió: > > How did you find this? I would have taken the tool from GitHub: > I have to admit I am not sure anymore where I found this. When > cleaning up the .make file I considered switching to github, but at > the end I chose not to do it as it had no tags and I thought that this > would be cleaner than referencing a specific commit by its hash. +1 It tried to find it on the NXP webpage. You get a hit, when you type 'kobs' in the search field and this is returned: https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-kobs-5.5.tar.gz I could not find it through clicking through product and support pages however. > > What about IMX_KOBS_LICENSE_FILES := file://COPYING;md5=… > > Never did this before, I thought it was only necessary for > not-well-known licenses. Should I add it? This is needed for a license report, the checksum is to detect changes in licensing. It doesn't hurt to add it and may benefit users generating such a report. Greets Alex ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] imx-kobs: New package
On Tue, Oct 23, 2018 at 02:38:55PM +0200, Guillermo Rodriguez Garcia wrote: > > What about IMX_KOBS_LICENSE_FILES := file://COPYING;md5=… > > Never did this before, I thought it was only necessary for > not-well-known licenses. Should I add it? This has nothing to do with well-known or not. It's to catch license changes when the version is bumped. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-König| Industrial Linux Solutions | http://www.pengutronix.de/ | ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] imx-kobs: New package
Hi Alexander, El mar., 23 oct. 2018 a las 13:00, Alexander Dahl () escribió: > > Hei hei, > > this is strange, I was just working on a new package for the very same tool. > o.O :) > Am Dienstag, 23. Oktober 2018, 11:23:36 CEST schrieb Guillermo Rodríguez: > > The imx-kobs tool is used to create and write i.MX NAND boot > > related boot data structures to NAND flash. > > > > Signed-off-by: Guillermo Rodriguez > > --- > > rules/imx-kobs.in | 8 > > rules/imx-kobs.make | 53 > > + 2 files changed, 61 > > 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 000..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 000..49380c2 > > --- /dev/null > > +++ b/rules/imx-kobs.make > > @@ -0,0 +1,53 @@ > > +# -*-makefile-*- > > +# > > +# Copyright (C) 2018 by Guillermo Rodriguez > > +# > > +# 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 := > > http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/$(IMX_KOBS).$(IMX_KOBS_SUFFI > > How did you find this? I would have taken the tool from GitHub: I have to admit I am not sure anymore where I found this. When cleaning up the .make file I considered switching to github, but at the end I chose not to do it as it had no tags and I thought that this would be cleaner than referencing a specific commit by its hash. > https://github.com/NXPmicro/imx-kobs > > That one is without tags however. > > > X) +IMX_KOBS_DIR := $(BUILDDIR)/$(IMX_KOBS) > > +IMX_KOBS_SOURCE := $(SRCDIR)/$(IMX_KOBS).$(IMX_KOBS_SUFFIX) > > +IMX_KOBS_LICENSE := GPLv2 > > GPL-2.0-or-later OK. > What about IMX_KOBS_LICENSE_FILES := file://COPYING;md5=… Never did this before, I thought it was only necessary for not-well-known licenses. Should I add it? Thanks, Guillermo ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] imx-kobs: New package
Hello, Am Dienstag, 23. Oktober 2018, 12:59:56 CEST schrieb Alexander Dahl: > Am Dienstag, 23. Oktober 2018, 11:23:36 CEST schrieb Guillermo Rodríguez: > > +IMX_KOBS_VERSION := 5.5 > > +IMX_KOBS_SUFFIX:= tar.gz > > +IMX_KOBS_MD5 := 48ed9e69e9527d2e98b5cfcbf133d75b > > +IMX_KOBS := imx-kobs-$(IMX_KOBS_VERSION) > > +IMX_KOBS_URL := > > http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/$(IMX_KOBS).$(IMX_KOBS_SUFF > > I > > How did you find this? Also, that URL redirects to this one: https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-kobs-5.5.tar.gz > I would have taken the tool from GitHub: > > https://github.com/NXPmicro/imx-kobs > > That one is without tags however. The only difference I see is in the README, so we probably can use that tarball: --- imx-kobs/README 2018-10-01 15:07:10.285277014 +0200 +++ imx-kobs-5.5/README 2016-04-20 04:39:46.0 +0200 @@ -1,5 +1,3 @@ -imx-kobs version 5.5 GPL-2.0 - If you want to compile it in cross environment. Please try the following : - #./configure CC=arm-none-linux-gnueabihf-gcc --host=arm-none-linux- gnueabihf-gcc + #./configure CC=arm-none-linux-gnueabi-gcc --host=arm-none-linux- gnueabi-gcc Greets Alex ___ ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] [PATCH] imx-kobs: New package
Hei hei, this is strange, I was just working on a new package for the very same tool. o.O Am Dienstag, 23. Oktober 2018, 11:23:36 CEST schrieb Guillermo Rodríguez: > The imx-kobs tool is used to create and write i.MX NAND boot > related boot data structures to NAND flash. > > Signed-off-by: Guillermo Rodriguez > --- > rules/imx-kobs.in | 8 > rules/imx-kobs.make | 53 > + 2 files changed, 61 > 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 000..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 000..49380c2 > --- /dev/null > +++ b/rules/imx-kobs.make > @@ -0,0 +1,53 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2018 by Guillermo Rodriguez > +# > +# 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 := > http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/$(IMX_KOBS).$(IMX_KOBS_SUFFI How did you find this? I would have taken the tool from GitHub: https://github.com/NXPmicro/imx-kobs That one is without tags however. > X) +IMX_KOBS_DIR := $(BUILDDIR)/$(IMX_KOBS) > +IMX_KOBS_SOURCE := $(SRCDIR)/$(IMX_KOBS).$(IMX_KOBS_SUFFIX) > +IMX_KOBS_LICENSE := GPLv2 GPL-2.0-or-later What about IMX_KOBS_LICENSE_FILES := file://COPYING;md5=… > + > +# > --- > - +# Prepare > +# > --- > - + > +IMX_KOBS_CONF_TOOL := autoconf > + > +# > --- > - +# 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 > ") + @$(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 Greets Alex ___ ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] [PATCH] imx-kobs: New package
The imx-kobs tool is used to create and write i.MX NAND boot related boot data structures to NAND flash. Signed-off-by: Guillermo Rodriguez --- rules/imx-kobs.in | 8 rules/imx-kobs.make | 53 + 2 files changed, 61 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 000..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 000..49380c2 --- /dev/null +++ b/rules/imx-kobs.make @@ -0,0 +1,53 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Guillermo Rodriguez +# +# 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 := http://www.freescale.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 := GPLv2 + +# +# Prepare +# + +IMX_KOBS_CONF_TOOL := autoconf + +# +# 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 ") + @$(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