Files
buildroot/package
Thomas Petazzoni efdcd651bf package/Makefile.in: expose CONFIG_DIR to post-build/post-image scripts
Sometimes, post-build or post-image scripts need to reinvoke
Buildroot's make, for example to execute "make printvars".

However, so far post-build/image/fakeroot can't trivially run printvars
in a way that worked for both in-tree and out-of-tree builds. Indeed:

 * "make printvars" would work for in-tree builds, but not out of tree
   builds

 * "make -C ${O} printvars" would work for out-of-tree builds, but not
   in-tree builds

 * "make -C ${BR2_CONFIG%/*} printvars" works in both cases, but it is
   a bit cryptic, and two maintainers did not even immediately think of
   it

In order to solve this, this commit exposes $(CONFIG_DIR) to
post-build/image/fakeroot scripts, through the EXTRA_ENV variable.

The documentation is updated accordingly.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[yann.morin.1998@free.fr:
  - reference BR2_CONFIG as an exemple
  - slightly reword the commit log accordingly
  - move the doc for CONFIG_DIR next to that of BR2_CONFIG
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-05-06 22:58:54 +02:00
..
2021-04-09 21:21:48 +02:00
2021-04-09 21:22:18 +02:00
2021-05-04 22:30:14 +02:00
2021-05-01 15:00:18 +02:00
2021-05-01 15:04:30 +02:00
2021-04-29 11:14:04 +02:00
2021-04-20 23:42:43 +02:00
2021-04-29 11:15:32 +02:00
2021-04-30 14:54:55 +02:00
2021-04-24 11:25:33 +02:00
2021-04-28 23:40:44 +02:00
2021-04-11 21:33:36 +02:00
2021-05-01 15:00:18 +02:00
2021-04-19 22:26:25 +02:00
2021-04-10 10:31:27 +02:00
2021-04-07 21:23:02 +02:00
2021-05-01 15:00:18 +02:00
2021-05-01 15:00:18 +02:00
2021-04-05 18:19:56 +02:00
2021-04-20 23:22:29 +02:00
2021-04-20 23:22:30 +02:00
2021-04-25 22:34:00 +02:00
2021-04-19 22:45:06 +02:00
2021-04-28 12:12:48 +02:00
2021-04-19 22:18:27 +02:00
2021-04-20 23:23:13 +02:00
2021-04-11 21:36:30 +02:00
2021-04-19 23:45:02 +02:00
2021-04-11 21:35:38 +02:00
2021-04-05 18:29:59 +02:00
2021-04-22 22:57:42 +02:00
2021-04-20 23:23:13 +02:00
2021-05-05 21:39:46 +02:00
2021-05-01 15:00:18 +02:00
2021-04-20 23:23:13 +02:00
2021-04-15 21:07:35 +02:00
2021-04-23 22:34:17 +02:00
2021-04-24 11:28:06 +02:00
2021-05-01 15:00:18 +02:00
2021-04-19 23:28:25 +02:00
2021-04-13 23:08:17 +02:00