Config.in 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. menu "System configuration"
  2. # Note on package/skeleton: usually, it is not safe to 'select' a
  3. # provider of a virtual package. But below we have an exception: each
  4. # init system may select one of the virtual skeleton-init-* packages.
  5. # As only one init system may be enabled, only one skeleton-init-* may
  6. # be selected. So this is a safe situation.
  7. choice
  8. prompt "Root FS skeleton"
  9. config BR2_ROOTFS_SKELETON_DEFAULT
  10. bool "default target skeleton"
  11. help
  12. Use default target skeleton for selected init system.
  13. config BR2_ROOTFS_SKELETON_CUSTOM
  14. bool "custom target skeleton"
  15. select BR2_PACKAGE_SKELETON_CUSTOM
  16. help
  17. Use custom target skeleton.
  18. # skeleton from br2-external trees, if any
  19. source "$BR2_BASE_DIR/.br2-external.in.skeleton"
  20. endchoice
  21. if BR2_ROOTFS_SKELETON_CUSTOM
  22. config BR2_ROOTFS_SKELETON_CUSTOM_PATH
  23. string "custom target skeleton path"
  24. help
  25. Path to custom target skeleton.
  26. endif
  27. if BR2_ROOTFS_SKELETON_DEFAULT
  28. config BR2_TARGET_GENERIC_HOSTNAME
  29. string "System hostname"
  30. default "buildroot"
  31. help
  32. Select system hostname to be stored in /etc/hostname.
  33. Leave empty to not create /etc/hostname, or to keep the
  34. one from a custom skeleton.
  35. config BR2_TARGET_GENERIC_ISSUE
  36. string "System banner"
  37. default "Welcome to Buildroot"
  38. help
  39. Select system banner (/etc/issue) to be displayed at login.
  40. Leave empty to not create /etc/issue, or to keep the
  41. one from a custom skeleton.
  42. endif
  43. choice
  44. bool "Passwords encoding"
  45. default BR2_TARGET_GENERIC_PASSWD_SHA256
  46. help
  47. Choose the password encoding scheme to use when Buildroot
  48. needs to encode a password (eg. the root password, below).
  49. Note: this is used at build-time, and *not* at runtime.
  50. config BR2_TARGET_GENERIC_PASSWD_SHA256
  51. bool "sha-256"
  52. help
  53. Use SHA256 to encode passwords which is stronger than MD5.
  54. config BR2_TARGET_GENERIC_PASSWD_SHA512
  55. bool "sha-512"
  56. help
  57. Use SHA512 to encode passwords which is stronger than SHA256
  58. endchoice # Passwd encoding
  59. config BR2_TARGET_GENERIC_PASSWD_METHOD
  60. string
  61. default "sha-256" if BR2_TARGET_GENERIC_PASSWD_SHA256
  62. default "sha-512" if BR2_TARGET_GENERIC_PASSWD_SHA512
  63. # See comment at the top of the file, about selecting individual
  64. # skeletons, which are providers of the virtual skeleton package.
  65. choice
  66. prompt "Init system"
  67. default BR2_INIT_BUSYBOX
  68. config BR2_INIT_BUSYBOX
  69. bool "BusyBox"
  70. select BR2_PACKAGE_BUSYBOX
  71. select BR2_PACKAGE_INITSCRIPTS
  72. select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_ROOTFS_SKELETON_DEFAULT
  73. config BR2_INIT_SYSV
  74. bool "systemV"
  75. depends on BR2_USE_MMU # sysvinit
  76. select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # sysvinit
  77. select BR2_PACKAGE_INITSCRIPTS
  78. select BR2_PACKAGE_SYSVINIT
  79. select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_ROOTFS_SKELETON_DEFAULT
  80. config BR2_INIT_OPENRC
  81. bool "OpenRC"
  82. depends on BR2_USE_MMU
  83. depends on !BR2_STATIC_LIBS
  84. select BR2_PACKAGE_OPENRC
  85. select BR2_PACKAGE_SKELETON_INIT_OPENRC if BR2_ROOTFS_SKELETON_DEFAULT
  86. comment "openrc needs a toolchain w/ dynamic library"
  87. depends on BR2_USE_MMU
  88. depends on BR2_STATIC_LIBS
  89. # In Buildroot, we decided not to support a split-usr when systemd is
  90. # used as an init system. This is a design decision, not a systemd
  91. # issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than
  92. # with BR2_PACKAGE_SYSTEMD.
  93. config BR2_INIT_SYSTEMD
  94. bool "systemd"
  95. depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
  96. depends on BR2_USE_MMU
  97. depends on !BR2_STATIC_LIBS
  98. depends on BR2_TOOLCHAIN_USES_GLIBC
  99. depends on BR2_TOOLCHAIN_HAS_SSP
  100. depends on BR2_TOOLCHAIN_HAS_THREADS
  101. depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  102. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
  103. depends on BR2_HOST_GCC_AT_LEAST_5
  104. select BR2_ROOTFS_MERGED_USR
  105. select BR2_PACKAGE_SYSTEMD
  106. select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_ROOTFS_SKELETON_DEFAULT
  107. comment "systemd needs a glibc toolchain w/ SSP, headers >= 3.10, host and target gcc >= 5"
  108. depends on BR2_PACKAGE_SYSTEMD_ARCH_SUPPORTS
  109. depends on BR2_USE_MMU
  110. depends on !BR2_TOOLCHAIN_USES_GLIBC || \
  111. !BR2_TOOLCHAIN_HAS_SSP || \
  112. !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 || \
  113. !BR2_TOOLCHAIN_GCC_AT_LEAST_5 || \
  114. !BR2_HOST_GCC_AT_LEAST_5
  115. config BR2_INIT_NONE
  116. bool "None"
  117. select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT
  118. help
  119. Buildroot will not install any init system. You will
  120. have to provide your own, either with a new package
  121. or with a rootfs-overlay.
  122. # Init systems from br2-external trees, if any
  123. source "$BR2_BASE_DIR/.br2-external.in.init"
  124. endchoice
  125. config BR2_PACKAGE_SYSTEMD_DEFAULT_TARGET
  126. string "The default unit systemd starts at bootup"
  127. default "multi-user.target"
  128. depends on BR2_INIT_SYSTEMD
  129. help
  130. Specify the name of the unit configuration file to be started
  131. at bootup by systemd. Should end in ".target".
  132. ex: multi-user.target
  133. https://www.freedesktop.org/software/systemd/man/systemd.special.html#default.target
  134. choice
  135. prompt "/dev management" if !BR2_INIT_SYSTEMD
  136. default BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  137. config BR2_ROOTFS_DEVICE_CREATION_STATIC
  138. bool "Static using device table"
  139. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
  140. bool "Dynamic using devtmpfs only"
  141. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
  142. bool "Dynamic using devtmpfs + mdev"
  143. select BR2_PACKAGE_BUSYBOX
  144. config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
  145. bool "Dynamic using devtmpfs + eudev"
  146. depends on BR2_USE_WCHAR # eudev
  147. depends on !BR2_STATIC_LIBS
  148. depends on BR2_USE_MMU # eudev
  149. select BR2_PACKAGE_EUDEV
  150. comment "eudev needs a toolchain w/ wchar, dynamic library"
  151. depends on BR2_USE_MMU
  152. depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
  153. endchoice
  154. comment "/dev management using udev (from systemd)"
  155. depends on BR2_INIT_SYSTEMD
  156. config BR2_ROOTFS_DEVICE_TABLE
  157. string "Path to the permission tables"
  158. default "system/device_table.txt"
  159. help
  160. Specify a space-separated list of permission table locations,
  161. that will be passed to the makedevs utility to assign
  162. correct owners and permissions on various files in the
  163. target filesystem.
  164. See package/makedevs/README for details on the usage and
  165. syntax of these files.
  166. config BR2_ROOTFS_STATIC_DEVICE_TABLE
  167. string "Path to the device tables"
  168. default "system/device_table_dev.txt"
  169. depends on BR2_ROOTFS_DEVICE_CREATION_STATIC
  170. help
  171. Specify a space-separated list of device table locations,
  172. that will be passed to the makedevs utility to create all
  173. the special device files under /dev.
  174. See package/makedevs/README for details on the usage and
  175. syntax of these files.
  176. config BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES
  177. bool "support extended attributes in device tables"
  178. help
  179. Support extended attributes handling in device tables
  180. config BR2_ROOTFS_MERGED_USR
  181. bool "Use symlinks to /usr for /bin, /sbin and /lib"
  182. help
  183. If you say 'n' here, then /bin, /sbin and /lib and their
  184. counterparts in /usr will be separate directories. This
  185. is the historical UNIX way. In this case, /usr can be a
  186. filesystem on a partition separate from / .
  187. If you say 'y' here, then /bin, /sbin and /lib will be
  188. symlinks to their counterparts in /usr. In this case, /usr can
  189. not be a separate filesystem.
  190. if BR2_ROOTFS_SKELETON_DEFAULT
  191. config BR2_TARGET_ENABLE_ROOT_LOGIN
  192. bool "Enable root login with password"
  193. default y
  194. select BR2_PACKAGE_HOST_MKPASSWD if BR2_TARGET_GENERIC_ROOT_PASSWD != ""
  195. help
  196. Allow root to log in with a password.
  197. If not enabled, root will not be able to log in with a
  198. password. However, if you have an ssh server and you add an
  199. ssh key, you can still allow root to log in. Alternatively,
  200. you can use sudo to become root.
  201. config BR2_TARGET_GENERIC_ROOT_PASSWD
  202. string "Root password"
  203. default ""
  204. depends on BR2_TARGET_ENABLE_ROOT_LOGIN
  205. help
  206. Set the initial root password.
  207. If set to empty (the default), then no root password will be
  208. set, and root will need no password to log in.
  209. If the password starts with any of $1$, $5$ or $6$, it is
  210. considered to be already crypt-encoded with respectively md5,
  211. sha256 or sha512. Any other value is taken to be a clear-text
  212. value, and is crypt-encoded as per the "Passwords encoding"
  213. scheme, above.
  214. Note: "$" signs in the hashed password must be doubled. For
  215. example, if the hashed password is
  216. "$1$longsalt$v35DIIeMo4yUfI23yditq0", then you must enter it
  217. as "$$1$$longsalt$$v35DIIeMo4yUfI23yditq0" (this is necessary
  218. otherwise make would attempt to interpret the $ as a variable
  219. expansion).
  220. WARNING! WARNING!
  221. The password appears as-is in the .config file, and may appear
  222. in the build log! Avoid using a valuable password if either
  223. the .config file or the build log may be distributed, or at
  224. the very least use a strong cryptographic hash for your
  225. password!
  226. choice
  227. bool "/bin/sh"
  228. default BR2_SYSTEM_BIN_SH_DASH if !BR2_PACKAGE_BUSYBOX
  229. help
  230. Select which shell will provide /bin/sh.
  231. # busybox has shells that work on noMMU
  232. config BR2_SYSTEM_BIN_SH_BUSYBOX
  233. bool "busybox' default shell"
  234. depends on BR2_PACKAGE_BUSYBOX
  235. config BR2_SYSTEM_BIN_SH_BASH
  236. bool "bash"
  237. depends on BR2_USE_MMU # bash
  238. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  239. select BR2_PACKAGE_BASH
  240. config BR2_SYSTEM_BIN_SH_DASH
  241. bool "dash"
  242. depends on BR2_USE_MMU # dash
  243. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  244. select BR2_PACKAGE_DASH
  245. config BR2_SYSTEM_BIN_SH_MKSH
  246. bool "mksh"
  247. depends on BR2_USE_MMU # mksh
  248. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  249. select BR2_PACKAGE_MKSH
  250. config BR2_SYSTEM_BIN_SH_ZSH
  251. bool "zsh"
  252. depends on BR2_USE_MMU # zsh
  253. depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  254. select BR2_PACKAGE_ZSH
  255. comment "bash, dash, mksh, zsh need BR2_PACKAGE_BUSYBOX_SHOW_OTHERS"
  256. depends on !BR2_PACKAGE_BUSYBOX_SHOW_OTHERS && BR2_PACKAGE_BUSYBOX
  257. config BR2_SYSTEM_BIN_SH_NONE
  258. bool "none"
  259. endchoice # /bin/sh
  260. config BR2_SYSTEM_BIN_SH
  261. string
  262. default "bash" if BR2_SYSTEM_BIN_SH_BASH
  263. default "dash" if BR2_SYSTEM_BIN_SH_DASH
  264. default "mksh" if BR2_SYSTEM_BIN_SH_MKSH
  265. default "zsh" if BR2_SYSTEM_BIN_SH_ZSH
  266. menuconfig BR2_TARGET_GENERIC_GETTY
  267. bool "Run a getty (login prompt) after boot"
  268. default y
  269. if BR2_TARGET_GENERIC_GETTY
  270. config BR2_TARGET_GENERIC_GETTY_PORT
  271. string "TTY port"
  272. default "console"
  273. help
  274. Specify a port to run a getty on.
  275. choice
  276. prompt "Baudrate"
  277. default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  278. help
  279. Select a baudrate to use.
  280. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  281. bool "keep kernel default"
  282. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  283. bool "9600"
  284. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  285. bool "19200"
  286. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  287. bool "38400"
  288. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  289. bool "57600"
  290. config BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  291. bool "115200"
  292. endchoice
  293. config BR2_TARGET_GENERIC_GETTY_BAUDRATE
  294. string
  295. default "0" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
  296. default "9600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_9600
  297. default "19200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_19200
  298. default "38400" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_38400
  299. default "57600" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_57600
  300. default "115200" if BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
  301. config BR2_TARGET_GENERIC_GETTY_TERM
  302. string "TERM environment variable"
  303. default "vt100"
  304. # currently observed by all but systemd
  305. depends on !BR2_INIT_SYSTEMD
  306. help
  307. Specify a TERM type.
  308. config BR2_TARGET_GENERIC_GETTY_OPTIONS
  309. string "other options to pass to getty"
  310. default ""
  311. # currently observed by all but systemd
  312. depends on !BR2_INIT_SYSTEMD
  313. help
  314. Any other flags you want to pass to getty,
  315. Refer to getty --help for details.
  316. endif
  317. config BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW
  318. bool "remount root filesystem read-write during boot"
  319. default y
  320. help
  321. The root filesystem is typically mounted read-only at boot.
  322. By default, buildroot remounts it in read-write mode early
  323. during the boot process.
  324. Say no here if you would rather like your root filesystem to
  325. remain read-only.
  326. If unsure, say Y.
  327. config BR2_SYSTEM_DHCP
  328. string "Network interface to configure through DHCP"
  329. default ""
  330. depends on BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN || \
  331. BR2_PACKAGE_SYSTEMD_NETWORKD || BR2_PACKAGE_NETIFRC
  332. help
  333. Enter here the name of the network interface (E.G. eth0) to
  334. automatically configure through DHCP at bootup.
  335. If left empty, no automatic DHCP requests will take place.
  336. For more complicated network setups use an overlay to
  337. overwrite /etc/network/interfaces or add a networkd
  338. configuration file.
  339. comment "automatic network configuration via DHCP needs ifupdown or busybox or networkd or netifrc"
  340. depends on !(BR2_PACKAGE_BUSYBOX || BR2_PACKAGE_IFUPDOWN || \
  341. BR2_PACKAGE_SYSTEMD_NETWORKD || BR2_PACKAGE_NETIFRC)
  342. endif # BR2_ROOTFS_SKELETON_DEFAULT
  343. config BR2_SYSTEM_DEFAULT_PATH
  344. string "Set the system's default PATH"
  345. default "/usr/bin:/usr/sbin" if BR2_ROOTFS_MERGED_USR
  346. default "/bin:/sbin:/usr/bin:/usr/sbin" if !BR2_ROOTFS_MERGED_USR
  347. help
  348. Sets the system's default PATH. It is being used in
  349. /etc/profile in the skeleton-init-common package and by some
  350. daemons.
  351. The default should work in most cases.
  352. config BR2_ENABLE_LOCALE_PURGE
  353. bool "Purge unwanted locales"
  354. default y
  355. help
  356. Explicitly specify what locales to install on target. If N
  357. then all locales supported by packages are installed.
  358. config BR2_ENABLE_LOCALE_WHITELIST
  359. string "Locales to keep"
  360. default "C en_US"
  361. depends on BR2_ENABLE_LOCALE_PURGE
  362. help
  363. Whitespace separated list of locales to allow on target.
  364. Locales not listed here will be removed from the target.
  365. See 'locale -a' on your host for a list of locales available
  366. on your build host, or have a look in /usr/share/locale in
  367. the target file system for available locales.
  368. Notice that listing a locale here doesn't guarantee that it
  369. will be available on the target - That purely depends on the
  370. support for that locale in the selected packages.
  371. config BR2_GENERATE_LOCALE
  372. string "Generate locale data"
  373. default ""
  374. depends on \
  375. (BR2_TOOLCHAIN_BUILDROOT_UCLIBC && BR2_ENABLE_LOCALE) || \
  376. BR2_TOOLCHAIN_USES_GLIBC
  377. help
  378. Generate support for a list of locales. Locales can be
  379. specified with or without encoding, when no encoding is
  380. specified, UTF-8 is assumed. Examples of locales: en_US,
  381. fr_FR.UTF-8.
  382. config BR2_SYSTEM_ENABLE_NLS
  383. bool "Enable Native Language Support (NLS)"
  384. depends on BR2_USE_WCHAR
  385. # - glibc has built-in NLS support, but anyway doesn't
  386. # support static linking
  387. # - musl and uclibc support static linking, but they don't
  388. # have built-in NLS support, which is provided by the
  389. # libintl library from gettext. The fact that it is a
  390. # separate library causes too many problems for static
  391. # linking.
  392. depends on !BR2_STATIC_LIBS
  393. select BR2_PACKAGE_GETTEXT if !BR2_TOOLCHAIN_HAS_FULL_GETTEXT
  394. help
  395. This option will enable Native Language Support, which will
  396. allow software packages to support translations.
  397. comment "NLS support needs a toolchain w/ wchar, dynamic library"
  398. depends on !BR2_USE_WCHAR || BR2_STATIC_LIBS
  399. config BR2_TARGET_TZ_INFO
  400. bool "Install timezone info"
  401. select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_GLIBC
  402. select BR2_PACKAGE_TZDATA if BR2_TOOLCHAIN_USES_MUSL
  403. select BR2_PACKAGE_TZ if BR2_TOOLCHAIN_USES_UCLIBC
  404. help
  405. Say 'y' here to install timezone info.
  406. if BR2_TARGET_TZ_INFO
  407. config BR2_TARGET_TZ_ZONELIST
  408. string "timezone list"
  409. default "default"
  410. help
  411. Space-separated list of time zones to compile.
  412. The value "default" includes all commonly used time zones.
  413. Note that this set consumes around 5.5M for glibc and 2.1M for
  414. uClibc.
  415. The full list is the list of files in the time zone database
  416. source, not including the build and .tab files.
  417. config BR2_TARGET_LOCALTIME
  418. string "default local time"
  419. default "Etc/UTC"
  420. help
  421. The time zone to install as the default local time, expressed
  422. as a tzdata location, such as:
  423. Etc/UTC (the default)
  424. GMT
  425. Europe/Paris
  426. America/New_York
  427. Pacific/Wallis
  428. ...
  429. Set to empty to not install a default time zone.
  430. endif # BR2_TARGET_TZ_INFO
  431. config BR2_ROOTFS_USERS_TABLES
  432. string "Path to the users tables"
  433. help
  434. Specify a space-separated list of users table locations,
  435. that will be passed to the mkusers utility to create
  436. users on the system, with home directory, password, etc.
  437. See manual for details on the usage and syntax of these files.
  438. config BR2_ROOTFS_OVERLAY
  439. string "Root filesystem overlay directories"
  440. default ""
  441. help
  442. Specify a list of directories that are copied over the target
  443. root filesystem after the build has finished and before it is
  444. packed into the selected filesystem images.
  445. They are copied as-is into the rootfs, excluding files ending
  446. with ~ and .git, .svn and .hg directories.
  447. config BR2_ROOTFS_PRE_BUILD_SCRIPT
  448. string "Custom scripts to run before commencing the build"
  449. default ""
  450. help
  451. Specify a space-separated list of scripts to be run before the
  452. build commences.
  453. This gives users the opportunity to do board-specific
  454. preparations before starting the build.
  455. config BR2_ROOTFS_POST_BUILD_SCRIPT
  456. string "Custom scripts to run before creating filesystem images"
  457. default ""
  458. help
  459. Specify a space-separated list of scripts to be run after the
  460. build has finished and before Buildroot starts packing the
  461. files into selected filesystem images.
  462. This gives users the opportunity to do board-specific
  463. cleanups, add-ons and the like, so the generated files can be
  464. used directly without further processing.
  465. These scripts are called with the target directory name as
  466. first argument. Make sure the exit code of those scripts are
  467. 0, otherwise make will stop after calling them.
  468. config BR2_ROOTFS_POST_FAKEROOT_SCRIPT
  469. string "Custom scripts to run inside the fakeroot environment"
  470. default ""
  471. help
  472. Specify a space-separated list of scripts to be run at the end
  473. of the fakeroot script right before the image(s) are actually
  474. generated.
  475. This gives users the opportunity to do customisations of the
  476. content of the rootfs, which would otherwise require root
  477. rights.
  478. These scripts are called with the target directory name as
  479. first argument. The build will fail on the first scripts that
  480. exits with a non-zero exit code.
  481. Note that Buildroot already provides mechanisms to customise
  482. the content of the rootfs:
  483. - BR2_ROOTFS_STATIC_DEVICE_TABLE
  484. to create arbitrary entries statically in /dev
  485. - BR2_ROOTFS_DEVICE_TABLE
  486. to set arbitrary permissions as well as extended
  487. attributes (such as capabilities) on files and
  488. directories,
  489. - BR2_ROOTFS_USERS_TABLES:
  490. to create arbitrary users and their home directories
  491. It is highly recommended to use those mechanisms if possible,
  492. rather than using custom fakeroot scripts.
  493. config BR2_ROOTFS_POST_IMAGE_SCRIPT
  494. string "Custom scripts to run after creating filesystem images"
  495. default ""
  496. help
  497. Specify a space-separated list of scripts to be run after
  498. the build has finished and after Buildroot has packed the
  499. files into selected filesystem images.
  500. This can for example be used to call a tool building a
  501. firmware image from different images generated by Buildroot,
  502. or automatically extract the tarball root filesystem image
  503. into some location exported by NFS, or any other custom
  504. action.
  505. These scripts are called with the images directory name as
  506. first argument. The script is executed from the main Buildroot
  507. source directory as the current directory.
  508. config BR2_ROOTFS_POST_SCRIPT_ARGS
  509. string "Extra arguments passed to custom scripts"
  510. depends on BR2_ROOTFS_POST_BUILD_SCRIPT != "" \
  511. || BR2_ROOTFS_POST_FAKEROOT_SCRIPT != "" \
  512. || BR2_ROOTFS_POST_IMAGE_SCRIPT != ""
  513. help
  514. Pass these additional arguments to each post-build or
  515. post-image scripts.
  516. Note that all the post-build and post-image scripts will be
  517. passed the same set of arguments, you can not pass different
  518. arguments to each script.
  519. Note also, as stated in their respective help text, that the
  520. first argument to each post-build or post-image script is the
  521. target directory / images directory. The arguments in this
  522. option will be passed *after* those.
  523. endmenu