History log of /rk3399_rockchip-uboot/tools/scripts/define2mk.sed (Results 1 – 13 of 13)
Revision Date Author Comments
# a5214285 13-Jun-2016 Tom Rini <trini@konsulko.com>

Merge branch 'master' of git://git.denx.de/u-boot-uniphier


# cd51878e 11-Jun-2016 Masahiro Yamada <yamada.masahiro@socionext.com>

tools: fix define2mk.sed to not add quotes around negative integers

The sed script, tools/scripts/define2mk.sed, converts config defines
from C headers into include/autoconf.mk for the use in Makefi

tools: fix define2mk.sed to not add quotes around negative integers

The sed script, tools/scripts/define2mk.sed, converts config defines
from C headers into include/autoconf.mk for the use in Makefiles.

I found the tool adds quotes around negative integer values.

For example, at the point of the v2016.07-rc1 tag,
include/configs/microblaze-generic.h defines
#define CONFIG_BOOTDELAY -1 /* -1 disables auto-boot */

Because it is an integer option, it should be converted to:
CONFIG_BOOTDELAY=-1

But, the script actually converts it to:
CONFIG_BOOTDELAY="-1"

This is a fatal problem for the tools/moveconfig.py because it parses
include/autoconf.mk for the config defines from the board headers.
CONFIG_BOOTDELAY="-1" is considered as a string type option and it
is dropped due to the type mismatch from the entry in Kconfig.

This commit fixes the script so that the tools/moveconfig.py can
correctly convert integer options with a negative value.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

show more ...


# 17059f97 15-Apr-2013 Tom Rini <trini@ti.com>

Merge branch 'master' of git://git.denx.de/u-boot-arm


# 2979b263 11-Apr-2013 Benoît Thébaudeau <benoit.thebaudeau@advansee.com>

autoconfig.mk: Make it possible to define configs from other configs

Give more flexibility to define configs that can be interpreted by make, e.g. to
define fallback values of configs like in the ex

autoconfig.mk: Make it possible to define configs from other configs

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: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Reviewed-by: Tom Rini <trini@ti.com>

show more ...


# 2bad5df7 16-Oct-2010 Wolfgang Denk <wd@denx.de>

autoconfig.mk: avoid apostophes around hex values

When generating include/autoconfig.mk, hex numbers would be quoted.
This caused some false positives during automatic testing of the
builds, and is

autoconfig.mk: avoid apostophes around hex values

When generating include/autoconfig.mk, hex numbers would be quoted.
This caused some false positives during automatic testing of the
builds, and is known to cause some real issues for some Blackfin
configurations. Don't use apostophes for decimal and hex numbers (nor
for octal numbers).

Signed-off-by: Wolfgang Denk <wd@denx.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>

show more ...


# e18489e8 29-Feb-2008 Marian Balakowicz <m8@semihalf.com>

Merge branch 'master' of git://www.denx.de/git/u-boot into new-image


# 02409f8c 22-Feb-2008 Marcel Moolenaar <marcelm@juniper.net>

make define2mk.sed work on FreeBSD

In the thread "[1.3.2-rc1] MPC8548CDS/MPC8555CDS configs fails to link",
the define2mk.sed script was identified as the source of the link
failure on FreeBSD. The

make define2mk.sed work on FreeBSD

In the thread "[1.3.2-rc1] MPC8548CDS/MPC8555CDS configs fails to link",
the define2mk.sed script was identified as the source of the link
failure on FreeBSD. The problem is that sed(1) does not always support
the '+' operator. It isn't on FreeBSD. The attach patch implements the
equivalent, using the '*' operator instead and should work everywhere.

Signed-off-by: Marcel Moolenaar <marcelm@juniper.net>

show more ...


# 6a40ef62 09-Jan-2008 Markus Klotzbuecher <mk@denx.de>

Merge git://www.denx.de/git/u-boot

Conflicts:

board/tqm5200/tqm5200.c


# 4985ca5a 07-Jan-2008 Peter Pearse <peter.pearse@arm.com>

Merge with git://www.denx.de/git/u-boot.git


# 9caeaadf 11-Dec-2007 Stefan Roese <sr@denx.de>

Merge commit 'u-boot/master' into for-1.3.1

Conflicts:

drivers/rtc/Makefile


# f743931f 06-Dec-2007 Jon Loeliger <jdl@freescale.com>

Merge commit 'wd/master'


# 521dcd30 06-Dec-2007 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

Merge git://www.denx.de/git/u-boot

Conflicts:

drivers/Makefile


# 2f155f6c 24-Sep-2007 Grant Likely <grant.likely@secretlab.ca>

[BUILD] Generate include/autoconf.mk from board config files

Use cpp and sed to postprocess config.h and import the defined values
into include/autoconf.mk. autoconf.mk is then included by config.m

[BUILD] Generate include/autoconf.mk from board config files

Use cpp and sed to postprocess config.h and import the defined values
into include/autoconf.mk. autoconf.mk is then included by config.mk to
give 'make' access to the board configuration.

Doing this enables conditional compilation at the Makefile level instead
of by wrapping every .c file with #ifdef/#endif wrappers.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

show more ...