mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
ab6b1fd6f9
Introduce mkpasswd, a pure-C host tool for generating encrypted password
files at build time using TEA encryption. This enables secure,
credential-free firmware images while allowing build-time password
configuration.
Changes:
* Add mkpasswd.c host tool for TEA-based password hashing and encryption
* Integrate mkpasswd into Make build system (tools/Makefile.host)
* Add CMake support for mkpasswd compilation and ROMFS passwd generation
* Add CONFIG_BOARD_ETC_ROMFS_PASSWD_* configuration options to Kconfig
* Implement credential exclusion from defconfig to prevent password leaking
* Update savedefconfig.cmake to strip sensitive credentials
* Fix mkdir() portability for Windows Native builds (CONFIG_WINDOWS_NATIVE)
* Change default username from "admin" to "root" (POSIX convention)
* Improve build-failure error message with full menuconfig navigation path
BREAKING CHANGE: Boards enabling CONFIG_BOARD_ETC_ROMFS_PASSWD_ENABLE
must set CONFIG_BOARD_ETC_ROMFS_PASSWD_PASSWORD to a non-empty string
of at least 8 characters. The build now fails with an explicit error if
this config is left empty. To fix: run 'make menuconfig' and navigate to:
Board Selection --->
Auto-generate /etc/passwd at build time --->
Admin password
Signed-off-by: Abhishek Mishra <mishra.abhishek2808@gmail.com>
92 lines
877 B
Plaintext
92 lines
877 B
Plaintext
*.a
|
|
*.adb
|
|
*.dba
|
|
*.dbo
|
|
*.asm
|
|
*.bin
|
|
*.d
|
|
!*.d/
|
|
*.dSYM
|
|
*.elf
|
|
*.exe
|
|
etctmp/
|
|
*.gcno
|
|
*.gcda
|
|
*.hex
|
|
*.i
|
|
*.ihx
|
|
*.inf
|
|
*.lib
|
|
*.lod
|
|
*.lst
|
|
*.map
|
|
*.o
|
|
*.obj
|
|
*.profraw
|
|
*.rel
|
|
*.src
|
|
*.srec
|
|
*.swn
|
|
*.swo
|
|
*.swp
|
|
*.sym
|
|
*.wsp
|
|
*.ddc
|
|
*.dds
|
|
*.su
|
|
*.pyc
|
|
*.mapfile
|
|
*.SystemMap
|
|
*~
|
|
\#*\#
|
|
.\#*
|
|
.depend
|
|
/.cache
|
|
/.config
|
|
/.config.*
|
|
/.config-*
|
|
/.config\ *
|
|
/.cproject
|
|
/.cache
|
|
/.clang-format
|
|
/.gdbinit
|
|
/.gdb_history
|
|
/.project
|
|
/.version
|
|
/_SAVED_APPS_config
|
|
/cscope.*
|
|
/defconfig
|
|
/Make.defs
|
|
/nuttx
|
|
/nuttx32
|
|
/nuttx-*
|
|
/nuttx.*
|
|
/nuttx_user*
|
|
/staging
|
|
**/tags
|
|
/TAGS
|
|
core
|
|
Make*.dep
|
|
uImage
|
|
/external
|
|
# $(TOPDIR)/Makefile.[unix|win]::$(CONTEXTDIRS_DEPS)
|
|
.context
|
|
.context\ *
|
|
# $(TOPDIR)/Makefile.[unix|win]::$(DIRLINKS_EXTERNAL_DIRS)
|
|
.dirlinks
|
|
.fakelnk
|
|
.vscode
|
|
.idea
|
|
.DS_Store
|
|
tools/gdb/__pycache__
|
|
/build
|
|
.ccls-cache
|
|
compile_commands.json
|
|
imx9-sdimage.img
|
|
kwarning
|
|
SAVEMake.defs
|
|
SAVEconfig
|
|
.aider*
|
|
imx9-norimage.img
|
|
config.txt
|