openwrt/package
Konstantin Demin e1bd9645b6 dropbear: roll up recipes into mapping lists
this commit removes manual recipes for options and introduces mapping lists:
- DB_OPT_COMMON holds option mappings which are common for all builds;
- DB_OPT_CONFIG holds option mappings which are depend on config settings.

DB_OPT_COMMON is space-separated list of 'words', each of them is in format:
  'header_option|value'

'header_option' is added with value 'value' to 'localoptions.h'.

if 'header_option' is preceded by two exclamation marks ('!!')
then option is not added to 'localoptions.h' but replaced in 'sysoptions.h'.

in short:
   option|value - add option to localoptions.h
 !!option|value - replace option in sysoptions.h

DB_OPT_CONFIG is space-separated list of 'words', each of them is in format:
  'header_option|config_variable|value_enabled|value_disabled'

'header_option' is handled likewise in DB_OPT_COMMON.

if 'config_variable' is enabled (technically: not disabled)
then 'header_option' is set to 'value_enabled' and 'value_disabled' otherwise.

in short:
   option|config|enabled|disabled = add option to localoptions.h
 !!option|config|enabled|disabled = replace option in sysoptions.h

   option := (config) ? enabled : disabled

If you're not sure that option's value doesn't have '|' within - add your recipe
manually right after '$(Build/Configure/dropbear_headers)' and write some words
about your decision.

PS about two exclamation marks:
early idea was to use one exclamation mark to denote such header options
but then i thought single exclamation mark may be overlooked by mistake.

Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
2020-12-11 13:48:24 +01:00
..
base-files package/base-files: caldata: use dd iflag fullblock 2020-12-11 13:48:24 +01:00
boot uboot-envtools: ramips: use full names for Xiaomi Mi Routers 2020-12-08 23:45:10 +01:00
devel valgrind: Update to version 3.16.1 2020-11-18 19:01:44 +01:00
firmware ath10k-firmware: remove unused package 2020-11-28 18:19:37 +01:00
kernel kernel: kmod-lib-zstd: enable crypto API support 2020-12-06 08:56:59 -10:00
libs wolfssl: fix broken wolfSSL_X509_check_host 2020-12-11 13:48:24 +01:00
network dropbear: roll up recipes into mapping lists 2020-12-11 13:48:24 +01:00
system opkg: remove legacy dist and extra_data 2020-12-09 23:24:38 -10:00
utils mtd-utils: remove lzo build dependency 2020-12-06 11:21:37 -10:00
Makefile build: always build package/kernel/linux 2020-10-15 13:25:58 +02:00