Workaround a bug in the OpenWrt build system that was introduced when
the installed target path had been moved to target/linux/feeds.
Config.in and Makefile from installed targets are not properly included
from the new location. This hack is to be removed once the issues are
fixed.
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
The file was indented with a mix of spaces and tabs. Unify formating by
running shfmt on the file.
Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
Similarly to 986fc5ea (Make dev-check check for SSH instead of non-HTTP,
2020-06-23), check for SSH instead of whether the repo was cloned via
HTTP. Developers might have other remotes such as OpenWrt's configured.
Remove CONFIG_TARGET_MULTI_PROFILE=y and
CONFIG_TARGET_PER_DEVICE_ROOTFS=y that were hardcoded in genconfig and
genconfig_min. Since feeds/targets commit 295d1566 (treewide: Add
MULTI_PROFILE and PER_DEVICE_ROOTFS config, 2021-08-05), the options are
added in feeds/targets.
Also bring the unmaintainable copy-paste of genconfig that is
genconfig_min in sync with genconfig with regards target-specific config
options.
Unify the iop-subcommands install_key and ssh_install_key to one script.
In addition:
* Support new key types such as ssh-ed25519 which is supported by
Dropbear nowadays. Also add unsupported ones to make them work
automatically in the future.
* For the install_key command, do not re-add keys already added
* Read keys loaded into SSH Agent as well, which is useful when working
with agent forwarding on a remote host or in a Docker container.
* For the ssh_install_key command also add keys added manually to the
build dir.
For developers and Jenkins etc. A short hand command for
testing the just built image on real hardware. To be
used before pushing commits and nightly images to public.
when concatenating configurations there has to be an empty line at
the end otherwise the last line could be combined with the next
configuration option.
In order to determine, whether we are developers or not, check the
git-remotes for SSH-URLs instead of checking for the non-existence of
any HTTP-URLs. This fixes dev-mode not being detected properly when
curious devs add other HTTP-remotes such as upstream OpenWRT.
This also makes the check consistent with the check done in the main
"iop" script in the root.