[PATCH 11/20] [WIP] package/target: update to get modules from $(LINUX_OBJ_DIR)

Elliott Mitchell ehem+openwrt at m5p.com
Sun Nov 19 20:17:37 PST 2023


On Sat, Nov 11, 2023 at 10:51:08PM -0800, Elliott Mitchell wrote:
> Modules built from kernel source will now be in $(LINUX_OBJ_DIR).
> 
> Signed-off-by: Elliott Mitchell <ehem+openwrt at m5p.com>
> ---
>  package/kernel/linux/modules/block.mk        | 106 +++----
>  package/kernel/linux/modules/can.mk          |  36 +--
>  package/kernel/linux/modules/crypto.mk       | 252 ++++++++--------
>  package/kernel/linux/modules/firewire.mk     |   8 +-
>  package/kernel/linux/modules/fs.mk           | 100 +++----
>  package/kernel/linux/modules/gpio-cascade.mk |   2 +-
>  package/kernel/linux/modules/hwmon.mk        |  98 +++----
>  package/kernel/linux/modules/i2c.mk          |   2 +-
>  package/kernel/linux/modules/iio.mk          |  80 +++---
>  package/kernel/linux/modules/input.mk        |  26 +-
>  package/kernel/linux/modules/leds.mk         |  20 +-
>  package/kernel/linux/modules/lib.mk          |  76 ++---
>  package/kernel/linux/modules/multiplexer.mk  |   4 +-
>  package/kernel/linux/modules/netdevices.mk   | 214 +++++++-------
>  package/kernel/linux/modules/netfilter.mk    | 168 +++++------
>  package/kernel/linux/modules/netsupport.mk   | 204 ++++++-------
>  package/kernel/linux/modules/nls.mk          |  44 +--
>  package/kernel/linux/modules/other.mk        | 202 ++++++-------
>  package/kernel/linux/modules/pcmcia.mk       |  14 +-
>  package/kernel/linux/modules/sound.mk        |  98 +++----
>  package/kernel/linux/modules/spi.mk          |  10 +-
>  package/kernel/linux/modules/usb.mk          | 288 +++++++++----------
>  package/kernel/linux/modules/video.mk        | 168 +++++------
>  package/kernel/linux/modules/virt.mk         |  24 +-
>  package/kernel/linux/modules/w1.mk           |   2 +-
>  package/kernel/linux/modules/wpan.mk         |  20 +-
>  target/linux/apm821xx/modules.mk             |   4 +-
>  target/linux/armsr/modules.mk                |  80 +++---
>  target/linux/at91/modules.mk                 |  18 +-
>  target/linux/ath79/modules.mk                |   2 +-
>  target/linux/bcm27xx/modules/hwmon.mk        |   2 +-
>  target/linux/bcm27xx/modules/other.mk        |   6 +-
>  target/linux/bcm27xx/modules/sound.mk        | 206 ++++++-------
>  target/linux/bcm27xx/modules/spi.mk          |   4 +-
>  target/linux/bcm27xx/modules/video.mk        |  16 +-
>  target/linux/bcm47xx/modules.mk              |   6 +-
>  target/linux/bcm53xx/modules.mk              |   6 +-
>  target/linux/bcm63xx/modules.mk              |   4 +-
>  target/linux/bmips/modules.mk                |   6 +-
>  target/linux/gemini/modules.mk               |   2 +-
>  target/linux/ipq806x/modules.mk              |  14 +-
>  target/linux/kirkwood/modules.mk             |   4 +-
>  target/linux/layerscape/modules.mk           |   4 +-
>  target/linux/mediatek/modules.mk             |   8 +-
>  target/linux/mvebu/modules.mk                |   4 +-
>  target/linux/oxnas/modules.mk                |   4 +-
>  target/linux/ramips/modules.mk               |  20 +-
>  target/linux/sunxi/modules.mk                |  16 +-
>  target/linux/x86/modules.mk                  |  22 +-
>  49 files changed, 1362 insertions(+), 1362 deletions(-)

The reason this patch ended up so huge was every kernel module package
was setting $(FILES) to the absolute path of the module.  If instead
$(FILES) is set relative to the kernel object directory, and converted
to an absolute path during KernelPackage/$(1)/config, this becomes MUCH
smaller.  Unfortunately in turn the patch to do that ends up jumbo.

Can't win.  The cleanup has been long needed, but never done.  Now it
ends up a gigantic patch.


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         ehem+sigmsg at m5p.com  PGP 87145445         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445





More information about the openwrt-devel mailing list