mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
package/busybox: fix target-finalize hook
It was searching for CONFIG_ASH=y and CONFIG_HUSH=y at $(@D)/.config,
which does not contain the package build path at the target-finalize
step. Use $(BUSYBOX_DIR), instead.
Signed-off-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 9ab1d565ee)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
0c479e9f2b
commit
1d7c319a8b
@@ -303,11 +303,11 @@ endef
|
||||
# Add /bin/{a,hu}sh to /etc/shells otherwise some login tools like dropbear
|
||||
# can reject the user connection. See man shells.
|
||||
define BUSYBOX_INSTALL_ADD_TO_SHELLS
|
||||
if grep -q CONFIG_ASH=y $(@D)/.config; then \
|
||||
if grep -q CONFIG_ASH=y $(BUSYBOX_DIR)/.config; then \
|
||||
grep -qsE '^/bin/ash$$' $(TARGET_DIR)/etc/shells \
|
||||
|| echo "/bin/ash" >> $(TARGET_DIR)/etc/shells; \
|
||||
fi
|
||||
if grep -q CONFIG_HUSH=y $(@D)/.config; then \
|
||||
if grep -q CONFIG_HUSH=y $(BUSYBOX_DIR)/.config; then \
|
||||
grep -qsE '^/bin/hush$$' $(TARGET_DIR)/etc/shells \
|
||||
|| echo "/bin/hush" >> $(TARGET_DIR)/etc/shells; \
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user