| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Using 'pahole' needs to be disabled on MIPS as well in order to avoid
host depended config file adaptions which let the build fail.
Signed-off-by: Signed-off-by: Jürgen Borleis <jbe@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These macros make sure that the version and MD5 result in the string
"undefined" when the respective package is not enabled in the menu.
See the following PTXdist commits:
* commit 80d19e055622e87116df ("rules: new macros ptx/config-version and ptx/config-md5")
* commit bc40d075ebcdf81cc14b ("kernel: use ptx/config-version and ptx/config-md5")
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=80d19e055622e87116df
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=bc40d075ebcdf81cc14b
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20211126103937.2856148-4-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ports the kernel template part of PTXdist commit f50cd1449e934730:
| commit f50cd1449e9347309b1050b0b738882dac1954e9
| Author: Michael Olbrich <m.olbrich@pengutronix.de>
| Date: 2021-07-09 17:25:41
|
| rework device-tree handling
|
| It's not really possible to build a dtb by itself. A lot of included dtsi
| and header files are needed. So build the device-trees with the package
| that provides these files. Currently that's the kernel package.
|
| This also means, that other kernel packages can have their own device-trees
| as well.
|
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Set KERNEL_*_DTS to the current values of PTXCONF_DTC_OFTREE_DTS from
the platformconfig, as this symbol will vanish when migrating to the
next PTXdist version.
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=f50cd1449e9347309b10
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20211126103937.2856148-3-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ports the following PTXdist commits:
| commit 5b006ca1670901a4b74a863535e68ec5324b2366
| Author: Michael Olbrich <m.olbrich@pengutronix.de>
| Date: 2019-10-28 22:47:54
|
| template-kernel: use ptx/nl
|
| Otherwise, errors might be ignored.
|
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit a81a9f0fa98d78c62749011666e360603ae35b08
| Author: Roland Hieber <rhi@pengutronix.de>
| Date: 2020-06-23 12:17:30
|
| template: kernel: fix make syntax
|
| The closing brace for the foreach macro was removed when the line was
| converted from ';' to '$(ptx/nl)'.
|
| Fixes: 5b006ca1670901a4b74a ("template-kernel: use ptx/nl")
| Signed-off-by: Roland Hieber <rhi@pengutronix.de>
| Message-Id: <20200623101730.32495-1-rhi@pengutronix.de>
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 0284f2d88e5c50ebc65684282ef0be8a6259f76b
| Author: Michael Olbrich <m.olbrich@pengutronix.de>
| Date: 2020-06-26 11:15:34
|
| template-kernel: handle plugin detection for kernel version >= v5.7
|
| The old hack to disable plugin support no longer works with v5.7.
| Instead, add -DGENERATOR_FILE to the HOSTCC/HOSTCXX command.
| The plugin headers produce an error if this is defined.
|
| Tested with v4.19, v5.6 and v5.7.
|
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 7fb691e014c06b17c17dffe0d6c5d5f6c2a54403
| Author: Michael Olbrich <m.olbrich@pengutronix.de>
| Date: 2020-07-02 11:58:18
|
| template-kernel: improve
|
| The imagedir is deleted in 'ptxdist clean root'. So installing files there
| should only happen in targetinstall.
|
| Keep the variable handling similar to the kernel package and make it
| possible to overwrite the kernel version in the kernel config.
|
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 80ce928da2c8e0822e91964f0d65afcea5966c1c
| Author: Roland Hieber <rhi@pengutronix.de>
| Date: 2020-08-06 18:49:47
|
| kernel: fix typo in HOSTCXX variable
|
| The typo makes the variable expand to nothing. This was probably never
| caught because g++ is usually not used when building the kernel.
|
| Fixes: a668fd6120742fe5ef6e (2020-06-11, "kernel: handle plugin detection for kernel version >= v5.7")
| Signed-off-by: Roland Hieber <rhi@pengutronix.de>
| Message-Id: <20200806164947.4187-1-rhi@pengutronix.de>
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit b0f9f2fe33ca9027a554395c7ff467cabdc255e3
| Author: Roland Hieber <rhi@pengutronix.de>
| Date: 2020-08-07 12:44:24
|
| barebox, kernel: enable use of {allyes, allno, allmod, alldef, rand}config
|
| These config targets are documented in the man page, but until now, they
| only resulted in an error:
|
| $ ptxdist alldefconfig kernel
| ptxdist: Checking dependencies. This may take some seconds.
|
| make: *** No rule to make target 'kernel_alldefconfig'. Stop.
|
| Both kernel and barebox support all config targets which can be given on
| the ptxdist command line, so keep the match in the make recipe broad, as
| the ptxdist option parser will catch unknown config targets.
|
| Signed-off-by: Roland Hieber <rhi@pengutronix.de>
| Message-Id: <20200807104425.30276-2-rhi@pengutronix.de>
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 682d95986b7acfcabb31a25c58f0074e69c9005d
| Author: Roland Hieber <rhi@pengutronix.de>
| Date: 2020-08-19 13:27:00
|
| barebox, kernel: set <PKG>_CONF_TOOL := kconfig explicitely
|
| Until now this worked without setting the variable because
| ptxd_make_world_init tries to autodetect the config tool, but we should
| make this explicit.
|
| Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
| Message-Id: <20200819112703.11988-1-rhi@pengutronix.de>
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 5af76a1c7d631cd69e673e4ac77783ba059b109d
| Author: Roland Hieber <rhi@pengutronix.de>
| Date: 2020-08-19 13:27:01
|
| barebox, kernel: tab-align variables
|
| Signed-off-by: Roland Hieber <rhi@pengutronix.de>
| Message-Id: <20200819112703.11988-2-rhi@pengutronix.de>
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 7fa9235fb915e537d21054dc6a60af6981969ba5
| Author: Michael Olbrich <m.olbrich@pengutronix.de>
| Date: 2020-10-07 11:32:05
|
| kernel, barebox: use explicit list of config targets
|
| The problem with the pattern rule is that it also matches some files, such
| as $(PTXDIST_TOPDIR)/config/images/barebox_partitions.config. This results
| in strange error messages.
|
| Use a global list of possible config targets and use it to generate
| explicit lists of make targets.
|
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 6db79433b230a4d86a2f8b74442ed2d8239ab6cd
| Author: Roland Hieber <rhi@pengutronix.de>
| Date: 2020-09-28 16:23:50
|
| templates: add <PKG>_LICENSE_FILES variable where appropriate
|
| Signed-off-by: Roland Hieber <rhi@pengutronix.de>
| Message-Id: <20200928142350.31523-1-rhi@pengutronix.de>
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 7a90f622f3e46e1cbae6ddc4c4debe4ae62a3e52
| Author: Michael Olbrich <m.olbrich@pengutronix.de>
| Date: 2021-04-01 16:09:33
|
| template: kernel: fix disabling gcc plugins for >= v5.11
|
| Just a copy of the same change from the kernel package.
|
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 533f7709f61c54a1c133c5415be8de9b671a8095
| Author: Michael Olbrich <m.olbrich@pengutronix.de>
| Date: 2021-04-15 11:19:06
|
| kernel/kernel-template: set PTXDIST_NO_GCC_PLUGINS=1 in _MAKE_ENV as well
|
| Otherwise an implicit 'oldconfig' in the compile stage will try to enable
| plugins again.
|
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=a81a9f0fa98d78c62749
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=0284f2d88e5c50ebc656
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=7fb691e014c06b17c17d
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=80ce928da2c8e0822e91
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=b0f9f2fe33ca9027a554
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=682d95986b7acfcabb31
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=5af76a1c7d631cd69e67
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=7fa9235fb915e537d210
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=6db79433b230a4d86a2f
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=7a90f622f3e46e1cbae6
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=533f7709f61c54a1c133
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20211126103937.2856148-2-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
Even if this is currently unused, having this variable like in the
PTXdist template prevents confusion when backporting patches from the
template to the BSP recipes.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20211126103937.2856148-1-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
This is possible since ptxdist-2021.03.0 introduced in DistroKit with
ee0945e61587 ("ptxdist: migrate to 2021.03.0").
Signed-off-by: Alexander Dahl <ada@thorsis.com>
Reviewed-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20210713115218.16671-1-ada@thorsis.com
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When using layers that inherit DistroKit, doing a 'ptxdist oldconfig
barebox-common' in the inherited layer can lead to strange errors about
unmatched MD5 sums in the config diff. This happens because
ptxd_make_world_kconfig_mode() in scripts/lib/ptxd_make_world_kconfig.sh
only updates the config files when the stage name matches "*config".
Rename the "barebox-common_oldconfig_" target to something that matches
the regex.
As a side note, we still need a separate oldconfig target for
barebox-common here because it must run before all other barebox's
oldconfig stages.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20210426082840.5999-1-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since Barebox v2020.11.0, the build system supports a configurable
version string that is baked into the barebox image, see the following
upstream barebox commits:
* commit 98c221e3fad57f271d60 (2020-09-23, "Makefile: add buildsystem version variable")
* commit c7dcac9de597f006fdc8 (2020-09-23, "common: print buildsystem version in barebox banner")
* commit c600d8812e9f3b98591a (2020-09-23, "common: globalvar: add variable for buildsystem_version_string")
* commit 01b53d3b728073996e7e (2020-09-23, "imd: add buildsystem version to metadata")
Set that version string to the Git hash so we can always find out from
which DistroKit version a barebox-in-the-wild was built. (Even if we
don't use barebox >= v2020.11.0 on all platforms yet, future barebox
updates will benefit from this change.)
For mips, we use the upstream barebox rule, which takes the version
string from the platformconfig. For all other platforms, this change
effectively ports the following commit from PTXdist 2021.04.0:
| commit f5500c922424ee71dd99e80f743ed6d994e5bca6
| Author: Steffen Trumtrar <s.trumtrar@pengutronix.de>
| Date: 2021-04-01 10:36:41
|
| rules: barebox: support barebox buildsystem_version
|
| barebox supports setting a buildsystem version. This is useful to have
| an exact buildsystem version like a commit hash accessible from barebox.
|
| Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
| Message-Id: <20210401083641.9251-2-s.trumtrar@pengutronix.de>
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Link: https://git.pengutronix.de/cgit/barebox/commit/?id=98c221e3fad57f271d60
Link: https://git.pengutronix.de/cgit/barebox/commit/?id=c7dcac9de597f006fdc8
Link: https://git.pengutronix.de/cgit/barebox/commit/?id=c600d8812e9f3b98591a
Link: https://git.pengutronix.de/cgit/barebox/commit/?id=01b53d3b728073996e7e
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=f5500c922424ee71dd99
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ports the following commits from PTXdist 2021.04.0:
| commit a22b449946eed634f42b06b0c385b29621c6d02e
| Author: Michael Olbrich <m.olbrich@pengutronix.de>
| Date: 2021-04-01 15:58:54
|
| template: kernel: proper handle signed modules
|
| Same as 565aabf6f36d3ed31544d882394604c4a1b13597 but for the kernel
| template instead of the kernel itself.
|
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
| commit 565aabf6f36d3ed31544d882394604c4a1b13597
| Author: Denis Osterland-Heim <denis.osterland@diehl.com>
| Date: 2021-03-31 13:35:25
|
| kernel: proper handle signed modules
|
| If CONFIG_MODULE_SIG_ALL is set in kernelconfig then modules will be
| automatically signed during the modules_install phase of a kernel build.
|
| Signed modules are BRITTLE as the signature is outside of the defined ELF
| container. Thus they MAY NOT be stripped once the signature is computed
| and attached. Note the entire module is the signed payload, including any
| and all debug information present at the time of signing.
|
| See: https://www.kernel.org/doc/html/latest/admin-guide/module-signing.html
| Signed-off-by: Denis Osterland-Heim <denis.osterland@diehl.com>
| Message-Id: <20210331113525.22330-1-denis.osterland@diehl.com>
| Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
We might not sign kernel modules at the time, but apply the principle of
least surprise and port it now to be up to date with the upstream
kernel rule template.
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=a22b449946eed634f42b
Link: https://git.pengutronix.de/cgit/ptxdist/commit/?id=565aabf6f36d3ed31544
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is basically the same as the ptxdist upstream commit
c065184961ab1973c304ee31347205569b4f7536 ("kernel: add workaround to keep
kernelconfigs stable")
With linux-4.19 and gcc-8.x oldconfig will prompt for extra options that
are not available with e.g. gcc-7.x. This causes problems when a BSP is
built with different host compilers.
Add a workaround to optionally disable these extra options by forcing the
compiler check to fail.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
| |
This file has never existed here, and the respective lines were also
removed from the upstream PTXdist rules and templates in commit
cbd6bda680c65d7e01cf ("CREDITS: remove unmaintained file").
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|
|
Currently this platform can build rootfs and run only barebox. Other
parts need more work, but even on this stage we would be able to make
toolchain and barebox regression tests.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
|