path: root/system
Commit message (Collapse)AuthorAgeFilesLines
* kmod: does not support static buildsGravatar Thomas Petazzoni2013-09-021-0/+4
| | | | | | | | | | | Since kmod 14, the support for building a static library has been removed completely from kmod. Therefore, we mark kmod as !BR2_PREFER_STATIC_LIB, as well as all its reverse dependencies, which includes the option to use the "udev" /dev management method. [Peter: show comment for udev when BR2_PREFER_STATIC_LIB is enabled] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* host-mkpasswd: new packageGravatar Thomas De Schampheleire2013-08-101-4/+6
| | | | | | | | | | | | | | | | | | | | | Since the addition of root password setting support in buildroot, there have been a few bug reports in this area ([1], [2]). In these cases, the system mkpasswd did either not work, or did not provide the options we expect, like -m <method>. This patch adds a mkpasswd host package, based on the sources from whois. When a non-empty root password is set, this package is used as a dependency. Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> [1] http://lists.busybox.net/pipermail/buildroot/2013-July/075771.html [2] http://lists.busybox.net/pipermail/buildroot/2013-July/075869.html [Thomas P: use $(INSTALL) instead of install, put -lcrypt at the end of build command line to allow gcc to find the crypt() function in lcrypt.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* group file: define groups expected by udevGravatar Danomi Manchego2013-08-011-0/+8
| | | | | | | | | | | | | | | | | | | | | udev-182 requires several groups to be resolvable at udev startup, including disk, cdrom, floppy, tape, audio, video, lp, tty, dialout, and kmem. Only some of these are in the default skeleton's group file, So let's add the missing groups, and plugdev too. This avoids getting these logs in /var/logs/messages: Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'dialout' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'kmem' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'video' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'lp' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'floppy' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'cdrom' unknown Jan 1 00:00:08 buildroot daemon.err udevd[37]: specified group 'tape' unknown Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* fix white spacesGravatar Jerzy Grzegorek2013-07-201-8/+8
| | | | | Signed-off-by: Jerzy Grzegorek <jerzy.grzegorek@trzebnica.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system: add option to pass extra args to post-build and post-image scriptsGravatar Yann E. MORIN2013-07-101-5/+21
| | | | | | | | | | | | | | | | | It can be useful to have different configuration use the same post-build and/or post-image scripts as they share a common infrastructure, but yet have minor differentiation. This option allows passing zero or more additional arguments to each post-build or post-image script. The same set of extra arguments are passed to all scripts, it is not possible to pass different arguments to each script. [Peter: fix help text, post-image gets called with the images dir] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system/permissions: make /root group+others non-writableGravatar Yann E. MORIN2013-06-231-0/+1
| | | | | | | | | | | | | | | | Upon logging, dropbear whines if /root is group- or others-writable, and key-based authentication is attempted, reverting to password-based authentication: dropbear[149]: /root must be owned by user or root, and not writable by others dropbear[149]: Password auth succeeded for 'root' from On my system, /root was 770. Changing to 700 fixed the issue. Having /root 700 is a good idea, anyway. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system/skeleton: remove /etc/hostnameGravatar Peter Korsgaard2013-06-191-1/+0
| | | | | | | | | | | We already provide BR2_TARGET_GENERIC_HOSTNAME to set /etc/hostname, so a default /etc/hostname file isn't needed. More importantly, if the user has explictly set BR2_TARGET_GENERIC_HOSTNAME to the empty string, we would still end up with a /etc/hostname containing 'buildroot' which is unlikely to be what the user wanted. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system/device-table: do not set /home/default stgidGravatar Yann E. MORIN2013-05-301-1/+1
| | | | | | | | | Currently, /home/default is mode 2755 which means it is setgid. Since /home/default is not group-writable, it is useless. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* skeleton: add default login port to /etc/securettyGravatar Tzu-Jung Lee2013-05-261-0/+8
| | | | | | | | | | | | | | | | | | We ran into a "Login incorrect" problem when running the same rootfs image across platforms with different loging ports ttyS0/1/2/3. Simply assignning "console" to BR2_TARGET_GENERIC_GETTY_PORT, which in turn modifies the /etc/inittab, is not enough because the "console" device was missing in the /etc/securetty. While current securetty has enumerated a lot of ttys, this patch should save some efforts to enumerate more. [Peter: guard with single quotes] Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system: remove trailing tabs in Config.in fileGravatar Thomas Petazzoni2013-04-291-8/+8
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system/securetty: Add ttyPS[0-1]Gravatar Soren Brinkmann2013-04-111-0/+2
| | | | | | | Adding ttyPS0 and ttyPS1 to securetty for Zynq. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Adjust prompt for the post-build scripts optionGravatar Thomas Petazzoni2013-02-081-1/+1
| | | | | | | | | | Since the post-image config option uses the plural for "Custom scripts", do the same for the post-build config option, for consistency. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add a post-image script mechanismGravatar Thomas Petazzoni2013-02-081-0/+18
| | | | | | | | | | | | | | | | | | | | Just like we have a post-build script mechanism that gets executed after the build of all packages but before the creation of the filesystem images, let's introduce a post-image script mechanism, that gets executed once all filesystem images have been generated. This can for example be used to call a tool building a firmware image from different images generated by Buildroot, or automatically extract the tarball root filesystem image into some location exported by NFS, or any other custom action. [Peter: fix image script check] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* target/generic: add filesystem overlay optionGravatar Arnout Vandecappelle (Essensium/Mind)2013-02-051-0/+11
| | | | | | | | | | | The filesystem overlay is a tree that is copied over the target fs after building everything - which is currently usually done in the post-build script. [Peter: don't ignore missing directories] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system: simplify BR2_ROOTFS_SKELETON_DEFAULT handlingGravatar Peter Korsgaard2013-01-061-7/+1
| | | | | | No functional change. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* target: add different methods to encode passwordsGravatar Yann E. MORIN2013-01-062-1/+56
| | | | | | | | | | | Passwords can be encoded in different ways (from the weakest to the strongest): des, md5, sha-256, sha-512 Add a choice entry to select the method, defaulting to 'md5'. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system: set root password only for default skeletonGravatar Yann E. MORIN2013-01-062-21/+23
| | | | | | | | | | | | In case one is using a custom skeleton, the root pasword might already be set in this case, and should not be overriden. Just ask for (and set) the root password only for the default skeleton. Reported-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Peter Korsgaard <jacmet@uclibc.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system: TARGET_GENERIC_GETTY: allow it to be disabledGravatar Peter Korsgaard2013-01-042-0/+4
| | | | | | | For some systems, you don't want to run any getty, so allow the option to be disabled when the empty string is used. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* target: add option to set the root passwordGravatar Yann E. MORIN2012-12-302-0/+30
| | | | | | | | | | | | | | | | Add an option in the menuconfig to specify a root password. If set to empty, no root password is created; otherwise, the password is encrypted using MD5 (MD5 is not the default for crypt(3), DES-56 is, but MD5 is widely available, not-so-strong, but not-so-weak either). Add a check for 'mkpasswd' as a new dependency. [Peter: fix typo/capitilization and simplify logic] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system: add option to configure TERM variableGravatar Richard Braun2012-12-162-2/+9
| | | | | | | | This option is useful for cases where the terminal isn't a bare serial vt100, but e.g. a linux tty with more features. Signed-off-by: Richard Braun <rbraun@sceen.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* skeleton: add /etc/nsswitch.confGravatar Stephan Hoffmann2012-12-021-0/+17
| | | | | | | | | | Toolchain Linaro 2012_09 and possibly other glibc based ones rely on the existence of nsswitch.conf. If it's missing names from /etc/hosts are not resolved and thus "localhost" is not known. Signed-off-by: Stephan Hoffmann <sho@relinux.de> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add /var/www to device tableGravatar Simon Dawson2012-11-301-0/+1
| | | | | | | | | | | | The /var/www directory is listed in /etc/passwd in the skeleton target filesystem as the home directory of the www-data user (uid 33). In the final target filesystem, /var/www should be owned by www-data. This is important for the lighttpd package, for example. Signed-off-by: Simon Dawson <spdawson@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* dbus: uses fork(), requires MMUGravatar Thomas Petazzoni2012-11-171-0/+1
| | | | | | | | | | | | | | In order to solve http://autobuild.buildroot.org/results/34f6843137efda20626af72714c110280ec577d7/build-end.log, this patch makes the D-Bus package as well as all the packages that select the D-Bus package 'depends on BR2_USE_MMU'. In addition, for the specific case of gvfs, the missing BR2_TOOLCHAIN_HAS_THREADS dependency is added (threads are required by D-Bus, so they are also required by gvfs which selects D-Bus). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Allow to run severals post build scripts instead of only oneGravatar Philippe Reynes2012-11-171-5/+6
| | | | | | | | | Using severals post build scripts is usefull to share script between severals boards/projects. [Peter: fix trailing spaces in Config.in] Signed-off-by: Philippe Reynes <philippe.reynes@sagemcom.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* system: fixup default device table locations after system/ got addedGravatar Peter Korsgaard2012-11-041-2/+2
| | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* New top-level directory: systemGravatar Thomas Petazzoni2012-11-0459-0/+1160
This directory groups the following elements: * the default root filesystem skeleton * the default device tables * the Config.in options for system configuration (UART port for getty, system hostname, etc.) * the make rules to apply the system configuration options Even though the skeleton and device tables could have lived in fs/, it would have been strange to have the UART, system hostname and other related options into fs/. A new system/ directory makes more sense. As a consequence, this patch also removes target/Makefile.in, which has become useless in the process. [Peter: fixup TARGET_SKELETON settings / documentation to match] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Yann E. MORIN <yann.morin.1998@free.fr> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>