mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 15:56:49 +00:00
29e170dbaa
- drop patches (applied upstream):
* 010-backport-change-address-logging.patch
* 020-backport-ed25519-support.patch
* 021-backport-chacha20-poly1305-support.patch
- backport patches:
* 010-backport-disable-toom-and-karatsuba.patch:
reduce dropbear binary size (about ~8Kb).
- refresh patches.
- don't bother anymore with following config options
because they are disabled in upstream too:
* DROPBEAR_3DES
* DROPBEAR_ENABLE_CBC_MODE
* DROPBEAR_SHA1_96_HMAC
- explicitly disable DO_MOTD as it was before commit a1099ed
:
upstream has (accidentally) switched it to 0 in release 2019.77,
but reverted back in release 2020.79.
Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
49 lines
1.1 KiB
Diff
49 lines
1.1 KiB
Diff
--- a/libtomcrypt/makefile_include.mk
|
|
+++ b/libtomcrypt/makefile_include.mk
|
|
@@ -94,6 +94,13 @@ endif
|
|
|
|
LTC_CFLAGS += -Wno-type-limits
|
|
|
|
+ifdef OPENWRT_BUILD
|
|
+ ifeq (-Os,$(filter -Os,$(CFLAGS)))
|
|
+ LTC_CFLAGS += -DLTC_SMALL_CODE
|
|
+ endif
|
|
+else
|
|
+ ### ! OPENWRT_BUILD
|
|
+
|
|
ifdef LTC_DEBUG
|
|
$(info Debug build)
|
|
# compile for DEBUGGING (required for ccmalloc checking!!!)
|
|
@@ -121,6 +128,9 @@ endif
|
|
endif # COMPILE_SMALL
|
|
endif # COMPILE_DEBUG
|
|
|
|
+ ### ! OPENWRT_BUILD
|
|
+endif
|
|
+
|
|
|
|
ifneq ($(findstring clang,$(CC)),)
|
|
LTC_CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header -Wno-missing-field-initializers
|
|
--- a/libtommath/makefile_include.mk
|
|
+++ b/libtommath/makefile_include.mk
|
|
@@ -70,6 +70,9 @@ else
|
|
LTM_CFLAGS += -Wsystem-headers
|
|
endif
|
|
|
|
+ifndef OPENWRT_BUILD
|
|
+ ### ! OPENWRT_BUILD
|
|
+
|
|
ifdef COMPILE_DEBUG
|
|
#debug
|
|
LTM_CFLAGS += -g3
|
|
@@ -90,6 +93,9 @@ endif
|
|
|
|
endif # COMPILE_SIZE
|
|
|
|
+ ### ! OPENWRT_BUILD
|
|
+endif
|
|
+
|
|
ifneq ($(findstring clang,$(CC)),)
|
|
LTM_CFLAGS += -Wno-typedef-redefinition -Wno-tautological-compare -Wno-builtin-requires-header
|
|
endif
|