mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 16:07:42 +00:00
package/dropbear: add option to provide file with localoptions.h
As discussed in https://patchwork.ozlabs.org/patch/1104071/, this commit adds a new option that allows the user to provide a file that contains custom definitions to tweak the Dropbear configuration. It will be appended to Dropbear's localoptions.h file before the build. The patch was tested successfully with the DO_MOTD option. Suggested-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com> [Thomas: tweak commit log, rename config option.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
ad8ed6bc4b
commit
26708469ad
@ -66,4 +66,11 @@ config BR2_PACKAGE_DROPBEAR_LEGACY_CRYPTO
|
|||||||
DSA public keys
|
DSA public keys
|
||||||
Diffie-Hellman Group1 key exchange
|
Diffie-Hellman Group1 key exchange
|
||||||
|
|
||||||
|
config BR2_PACKAGE_DROPBEAR_LOCALOPTIONS_FILE
|
||||||
|
string "path to custom localoptions.h definitions file"
|
||||||
|
help
|
||||||
|
Path to a file whose contents will be appended to Dropbear
|
||||||
|
localoptions.h. It can be used to tweak the Dropbear
|
||||||
|
configuration.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
@ -124,6 +124,14 @@ ifneq ($(BR2_PACKAGE_DROPBEAR_LASTLOG),y)
|
|||||||
DROPBEAR_CONF_OPTS += --disable-lastlog
|
DROPBEAR_CONF_OPTS += --disable-lastlog
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
DROPBEAR_LOCALOPTIONS_FILE = $(call qstrip,$(BR2_PACKAGE_DROPBEAR_LOCALOPTIONS_FILE))
|
||||||
|
ifneq ($(DROPBEAR_LOCALOPTIONS_FILE),)
|
||||||
|
define DROPBEAR_APPEND_LOCALOPTIONS_FILE
|
||||||
|
cat $(DROPBEAR_LOCALOPTIONS_FILE) >> $(@D)/localoptions.h
|
||||||
|
endef
|
||||||
|
DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_APPEND_LOCALOPTIONS_FILE
|
||||||
|
endif
|
||||||
|
|
||||||
define DROPBEAR_INSTALL_TARGET_CMDS
|
define DROPBEAR_INSTALL_TARGET_CMDS
|
||||||
$(INSTALL) -m 755 $(@D)/dropbearmulti $(TARGET_DIR)/usr/sbin/dropbear
|
$(INSTALL) -m 755 $(@D)/dropbearmulti $(TARGET_DIR)/usr/sbin/dropbear
|
||||||
for f in $(DROPBEAR_TARGET_BINS); do \
|
for f in $(DROPBEAR_TARGET_BINS); do \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user