summaryrefslogtreecommitdiffstats
path: root/common/Kconfig
Commit message (Collapse)AuthorAgeFilesLines
...
| * | ARM: rockchip: Add early debug support for RK3288Wadim Egorov2016-08-261-3/+3
| |/ | | | | | | | | Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2016-09-131-1/+2
|\ \
| * | Fix small typo in common/KconfigSam Van Den Berge2016-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | | Fix small typo frendly -> friendly Signed-off-by: Sam Van Den Berge <sam.van.den.berge@telenet.be> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Kconfig: defaultenv-2 select CMD_TESTAlexander Kurz2016-08-221-0/+1
| |/ | | | | | | | | | | | | CMD_TEST is required for scripts in defaultenv-2, e.g. automount. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / Add i.MX50 supportAlexander Kurz2016-09-121-0/+7
|/ | | | | Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/nv'Sascha Hauer2016-08-031-0/+2
|\
| * nv: Allow wildcards when removing NV varsSascha Hauer2016-07-251-0/+1
| | | | | | | | | | | | | | With this patch 'nv -r' can also take "*" and "?" wildcards for nv variables. This makes it easier to remove multiple nv variables. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * lib: Add Kconfig symbol for FNMATCHSascha Hauer2016-07-251-0/+1
| | | | | | | | | | | | | | fnmatch is useful on its own, so make a separate Kconfig symbol and select it from GLOB. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | boot: Move code to common/Sascha Hauer2016-07-261-0/+3
|/ | | | | | | | | Normally code in commands/ shall only do the option parsing whereas the functionality shall be in common/ to make the code usable from C aswell. Do this in the boot code aswell, move it to common/boot.c and add the function prototypes to include/boot.h Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/arm'Sascha Hauer2016-07-111-2/+0
|\
| * common: Kconfig: Remove orphaned dependency LOAD_PBL_SRAMAlexander Shiyan2016-06-281-2/+0
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | defaultenv-2: select BOOTMLucas Stach2016-06-241-0/+1
|/ | | | | | | defualtenv-2 selects CMD_BOOT, which in turn needs BOOTM. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/bootm'Sascha Hauer2016-06-141-4/+94
|\
| * bootm: Add missing BOOTM_FORCE_SIGNED_IMAGES optionSascha Hauer2016-05-101-0/+9
| | | | | | | | | | | | | | The code already tests for this option, but it does not yet exist. Add the option to force using signed images. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * bootm: Move bootm options to common/KconfigSascha Hauer2016-05-101-4/+85
| | | | | | | | | | | | | | | | | | | | | | | | bootm has a C API, so the bootm options have to depend on the option providing the bootm code (CONFIG_BOOTM), not on the option providing the command (CONFIG_CMD_BOOTM). Fixing the dependencies makes it possible to fully use bootm from C without enabling the bootm command support. This also removes the CMD_ prefix from the options which means we have to update the defconfigs aswell. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | state: select CRC32Lucas Stach2016-06-031-0/+1
| | | | | | | | | | | | | | | | The raw state backend uses crc32 unconditionally, so make sure it's present. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | common: select dependencies for defaultenv-2Lucas Stach2016-05-301-0/+3
|/ | | | | | | | | Now that GLOBALVAR and NVVAR are user visible options they need to be selected when selecting the global and nv command support which uses them. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/ubiformat'Sascha Hauer2016-05-091-0/+7
|\
| * commands: ubiformat: move code to common/Sascha Hauer2016-04-261-0/+7
| | | | | | | | | | | | | | This is the final step to separate the ubiformat code from the command. With this the ubiformat code gains a C API. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2016-05-091-9/+35
|\ \
| * | Kconfig: Create Kconfig symbol for NVVARSascha Hauer2016-04-281-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nvvar support not only needs globalvar, but also persistent environment storage. Add a separate default-y option which depends on ENV_HANDLING for this case. Make the option visible to let the user decide whether he wants to have this option and add a help text to make this decision easier. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Kconfig: Make ENV_HANDLING visibleSascha Hauer2016-04-281-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | ENV_HANDLING is usable even without explicit loadenv/saveenv command support. Instead of selecting this option from loadenv/saveenv, make this option visible. loadenv/saveenv can then depend on ENV_HANDLING rather than selecting it. This reduces Kconfig dependencies hassles. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | Kconfig: Make GLOBALVAR visibleSascha Hauer2016-04-281-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Currently global environment variables are only enabled when the "global" command is enabled. In fact, they could be used even with the "global" command disabled, so make the GLOBALVAR option visible. While at it, add a help text for this option. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | state: Fix Kconfig dependenciesSascha Hauer2016-04-281-1/+0
| |/ | | | | | | | | | | | | | | | | | | | | State support does not need OF_BAREBOX_DRIVERS and never did, so drop the dependency there. It's the state driver which needs of_find_path(), since this symbol now is always enabled when OF is enabled, we don't have to add the dependency to the state driver, but instead can depend on OFDEVICE. We could depend on OF instead, but compiling the state driver without OFDEVICE makes no sense. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / move FLEXIBLE_BOOTARGS from commands/ to common/Sascha Hauer2016-04-251-0/+12
|/ | | | | | | | FLEXIBLE_BOOTARGS also works without command support being enabled. Move this option from commands/Kconfig to common/Kconfig so that it doesn't depend on COMMAND_SUPPORT. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* common: add dependency !SANDBOX on imd target toolAntony Pavlov2016-04-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The build of bareboximd-target tool fails on sandbox architecture: CC scripts/bareboximd-target /tmp/ccoGPulo.o: In function `imd_concat_strings': scripts/../common/imd.c:216: undefined reference to `barebox_malloc' /tmp/ccoGPulo.o: In function `read_file_2': scripts/bareboximd.c:68: undefined reference to `barebox_open' scripts/bareboximd.c:74: undefined reference to `barebox_lseek' scripts/bareboximd.c:84: undefined reference to `barebox_lseek' scripts/bareboximd.c:90: undefined reference to `barebox_malloc' scripts/bareboximd.c:99: undefined reference to `barebox_read' scripts/bareboximd.c:119: undefined reference to `barebox_free' scripts/bareboximd.c:121: undefined reference to `barebox_close' /tmp/ccoGPulo.o: In function `imd_command': scripts/../common/imd.c:292: undefined reference to `barebox_printf' scripts/../common/imd.c:319: undefined reference to `barebox_printf' scripts/../common/imd.c:322: undefined reference to `barebox_free' scripts/../common/imd.c:324: undefined reference to `barebox_printf' /tmp/ccoGPulo.o: In function `usage': scripts/bareboximd.c:134: undefined reference to `barebox_printf' collect2: error: ld returned 1 exit status scripts/Makefile:58: recipe for target 'scripts/bareboximd-target' failed See also commit d4aa01503348a033b1057d8a66c20a4f5819e01f Author: Alexander Aring <alex.aring@gmail.com> Date: Tue Nov 19 02:08:13 2013 +0100 common: add dependency !SANDBOX on target tools The build of target tools fails on sandbox architecture. We don't need any target tools in this case, so add a dependency. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Cc: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ratp-console: select CRC16 and POLLER, depend on CONSOLE_FULLLucas Stach2016-02-111-0/+3
| | | | | | | | | | | | RATP console selects RATP, which in turn selects CRC16, but those chains don't work in Kconfig, so select CRC16 also from the console option. Also fix build errors by depending on CONSOLE_FULL and selecting POLLER. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/ratp'Sascha Hauer2016-02-081-0/+10
|\
| * barebox remote controlSascha Hauer2016-01-181-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the ability to control barebox over serial lines. The regular console is designed for human input and is unsuitable for controlling barebox from scripts since characters can be lost on both ends, the data stream contains escape sequences and the prompt cannot be easily matched upon. This approach is based on the RATP protocol. RATP packages start with a binary 0x01 which does not occur in normal console data. Whenever a 0x01 character is detected in the console barebox goes into RATP mode. The RATP packets contain a simple structure with a command/respone type and data for that type. Currently defined types are: BB_RATP_TYPE_COMMAND (host->barebox): Execute a command in the shell BB_RATP_TYPE_COMMAND_RETURN (barebox->host) Sends return value of the command back to the host, also means barebox is ready for the next command BB_RATP_TYPE_CONSOLEMSG (barebox->host) Console message from barebox Planned but not yet implemented are: BB_RATP_TYPE_PING (host->barebox) BB_RATP_TYPE_PONG (barebox->host) For testing purposes BB_RATP_TYPE_GETENV (host->barebox) BB_RATP_TYPE_GETENV_RETURN (barebox->host) Get values of environment variables Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Andrey Smirnov <andrew.smirnov@gmail.com>
* | bootm: add initial FIT supportJan Luebbe2016-01-261-0/+9
|/ | | | | | | | | | | | | | | This implementation is inspired by U-Boot's FIT support. Instead of using libfdt (which does not exist in barebox), configuration signatures are verified by using a simplified DT parser based on barebox's own code. Currently, only signed configurations with hashed images are supported, as the other variants are less useful for verified boot. Compatible FIT images can be created using U-Boot's mkimage tool. Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* state: backend_raw: add hmac supportMarc Kleine-Budde2015-11-271-0/+18
| | | | | | | | | | | | This patch adds hmac support to the raw backend. With this patch, modifications of the header or data of a state partition can be detected, as the hmac woudln't match anymore. The hmac relies on a shared secret, which is requested from the keystore, with keystore_get_secret() using the name of the state partition as the "name" of the secret. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* login: explain PASSWORD_DEFAULT optionSascha Hauer2015-08-281-1/+7
| | | | | | | | This option looks like it takes the default password, but instead it takes a filename of a file which contains the password encoded with the selected password digest. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* crypto: fix selecting of digestsSascha Hauer2015-08-281-4/+4
| | | | | | | | | | | | | | | | | SHA1 is meant as a boolean option which is true when sha1 support is available. This works because the providers (DIGEST_SHA1_GENERIC and DIGEST_SHA1_ARM) have a 'select SHA1'. However, consumers like the sha1sum command do a 'select SHA1' to enable SHA1 support. This of course does not work; selecting SHA1 will not select any of the SHA1 providers. This is broken for all digest consumers. We have to explicitly select a digest provider, that is DIGEST_*_GENERIC to enable the corresponding digest. This means now we will always have the generic digest in the binary, even when an optimized one is enabled. There is no sane way in Kconfig to "select provider for feature xy", so let's live with the overhead in the binary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/spd'Sascha Hauer2015-08-061-0/+4
|\
| * common: move DDR_SPD to common/KconfigAlexander Smirnov2015-07-061-0/+4
| | | | | | | | | | | | | | | | This patch makes it possible to use ddr_spd-related routines in any arch not only in ppc. Signed-off-by: Alexander Smirnov <alllecs@yandex.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | PBL: console: Make independent of DEBUG_LLSascha Hauer2015-07-311-12/+11
|/ | | | | | | | | | With more stuff being done in PBL regular console support gets more and more useful. This makes the PBL console independent of DEBUG_LL which is only meant for early debugging but not regular output. To use the regular PBL console a board must call pbl_set_putc() which stores a pointer to the putc function to be used. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2015-07-031-0/+10
|\
| * images: Add file size check for PBLX filesWadim Egorov2015-06-261-0/+10
| | | | | | | | | | Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx-bbu-nand-fcb'Sascha Hauer2015-07-031-0/+8
|\ \ | |/ |/| | | | | Conflicts: common/Kconfig
| * imx-bbu-nand-fcb: make available for i.MX28 aswellSascha Hauer2015-06-121-1/+1
| | | | | | | | | | | | | | | | The code can be used with slight modifications on i.MX28 aswell. Add a i.MX28 registration function and move the differences to function callbacks. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * ARM: i.MX6: bbu nand: Move to common placeSascha Hauer2015-06-121-0/+8
| | | | | | | | | | | | The code can be used on i.MX28 aswell, so move it to a common place. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | dma: Use generic place for dma_addr_t typedefSascha Hauer2015-05-221-0/+3
|/ | | | | | | | | Instead of letting all architectures define their own dma_addr_t use a common place in include/linux/types.h and use a Kconfig symbol that architectures can select to define the width of dma_addr_t. The same is done in the Kernel. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/state'Sascha Hauer2015-04-131-0/+7
|\
| * state: add framework for persistent state handlingSascha Hauer2015-03-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a framework to describe, access, store and restore a set of variables. A state variable set can be fully described in a devicetree node. This node could be part of the regular devicetree blob or it could be an extra devicetree solely for the state. The state variable set contains variables of different types and a place to store the variable set. For more information see: Documentation/devicetree/bindings/barebox/barebox,state.rst Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/crypto'Sascha Hauer2015-04-131-0/+8
|\ \
| * | password: add pbkdf2 supportJean-Christophe PLAGNIOL-VILLARD2015-03-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | We will use random 32 bytes salt and 10000 round to generate a 32 bytes key. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | password: add support for sha512Jean-Christophe PLAGNIOL-VILLARD2015-03-121-0/+4
| |/ | | | | | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* / make PBL_CONSOLE depend on PBL_IMAGEAntony Pavlov2015-04-131-0/+1
|/ | | | | | | | | | | | | | | | | | | PBL_CONSOLE option is used only for building PBL. See this output: barebox$ git grep PBL_CONSOLE arch/arm/configs/tx28stk5_defconfig:CONFIG_PBL_CONSOLE=y common/Kconfig:config PBL_CONSOLE common/Makefile:pbl-$(CONFIG_PBL_CONSOLE) += memory_display.o include/printk.h: (defined(__PBL__) && defined(CONFIG_PBL_CONSOLE)) include/stdio.h: (defined(__PBL__) && defined(CONFIG_PBL_CONSOLE)) lib/Makefile:pbl-$(CONFIG_PBL_CONSOLE) += vsprintf.o pbl/Makefile:pbl-$(CONFIG_PBL_CONSOLE) += console.o PBL_CONSOLE looks confusing in PBL-less configuration so it's better to enable it only if PBL is enabled. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pbl: let pbl-console depend on !CONSOLE_NONELucas Stach2015-03-111-0/+1
| | | | | | | | | | | | | | | It doesn't make much sense to have a console in the pbl but not in the main barebox binary. Fixes: pbl/console.c:34:5: error: redefinition of 'ctrlc' include/stdio.h:60:19: note: previous definition of 'ctrlc' was here pbl/console.c:39:6: error: redefinition of 'console_putc' include/stdio.h:49:20: note: previous definition of 'console_putc' was here Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/misc'Sascha Hauer2015-03-091-0/+1
|\