Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

define2mk.sed

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Benoît Thébaudeau's avatar
      2979b263
      autoconfig.mk: Make it possible to define configs from other configs · 2979b263
      Benoît Thébaudeau authored
      
      Give more flexibility to define configs that can be interpreted by make, e.g. to
      define fallback values of configs like in the example below.
      
      Before this change, the config lines:
       #define CONFIG_SPL_MAX_SIZE	2048
       #define CONFIG_SPL_PAD_TO	CONFIG_SPL_MAX_SIZE
      would have been changed in autoconfig.mk into:
       CONFIG_SPL_MAX_SIZE=2048
       CONFIG_SPL_PAD_TO="CONFIG_SPL_MAX_SIZE"
      
      Hence, a make recipe using as an argument to $(OBJCOPY):
       --pad-to=$(CONFIG_SPL_PAD_TO)
      would have issued:
       --pad-to="CONFIG_SPL_MAX_SIZE"
      which means nothing for $(OBJCOPY) and makes it fail.
      
      Thanks to this change, the config lines above are changed in autoconfig.mk into:
       CONFIG_SPL_MAX_SIZE=2048
       CONFIG_SPL_PAD_TO=$(CONFIG_SPL_MAX_SIZE)
      
      Hence, the make recipe above now issues:
       --pad-to=2048
      as expected from the defined config.
      
      Signed-off-by: default avatarBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
      Reviewed-by: default avatarTom Rini <trini@ti.com>
      2979b263
      History
      autoconfig.mk: Make it possible to define configs from other configs
      Benoît Thébaudeau authored
      
      Give more flexibility to define configs that can be interpreted by make, e.g. to
      define fallback values of configs like in the example below.
      
      Before this change, the config lines:
       #define CONFIG_SPL_MAX_SIZE	2048
       #define CONFIG_SPL_PAD_TO	CONFIG_SPL_MAX_SIZE
      would have been changed in autoconfig.mk into:
       CONFIG_SPL_MAX_SIZE=2048
       CONFIG_SPL_PAD_TO="CONFIG_SPL_MAX_SIZE"
      
      Hence, a make recipe using as an argument to $(OBJCOPY):
       --pad-to=$(CONFIG_SPL_PAD_TO)
      would have issued:
       --pad-to="CONFIG_SPL_MAX_SIZE"
      which means nothing for $(OBJCOPY) and makes it fail.
      
      Thanks to this change, the config lines above are changed in autoconfig.mk into:
       CONFIG_SPL_MAX_SIZE=2048
       CONFIG_SPL_PAD_TO=$(CONFIG_SPL_MAX_SIZE)
      
      Hence, the make recipe above now issues:
       --pad-to=2048
      as expected from the defined config.
      
      Signed-off-by: default avatarBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
      Reviewed-by: default avatarTom Rini <trini@ti.com>