aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2014-09-03systemd: enable forwarding messages to syslog daemonChenQi/systemd-misc-fixesChen Qi
In systemd_216, journald by default doesn't forward messages to syslog daemon. This breaks the oeqa testing cases. So we enable forwarding the messages for now. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03run-postinsts.service: remove redundant lineChen Qi
The basic.target itself requires sysinit.target, so there's no need to write this redundant line in the run-postinsts unit file. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03modutils-initscripts: mask modutils in case of systemdChen Qi
We need to prevent the init script from running via systemd because its functionality has been implemented interanlly in systemd. In a systemd system, we can add configuration files under /etc/modules-load.d/ to make things work. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03psplash: mask psplash in case of systemdChen Qi
We need to prevent the psplash init script from running via systemd because the script is supposed to be used by sysvinit system and it doesn't have any real effect in a systemd based system. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03v86d: mask fbsetup when necessaryChen Qi
When 'sysvinit' and 'systemd' are both in DISTRO_FEATURES, we need to prevent the init script from running via systemd. This is because that the functionality has been implemented internally in systemd. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03keymaps: mask keymap when necessaryChen Qi
When 'sysvinit' and 'systemd' are both in DISTRO_FEATURES, we need to prevent the init script from running via systemd. This is because that the functionality of the init script has implemented in systemd internally. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03initscripts: mask several init scriptsChen Qi
We now support executing scripts under /etc/rcS.d. So we need to mask several more init scripts here to prevent them from running at boot time. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03packagegroup-core-boot: conditionally rdepend on VIRTUAL-RUNTIME_initscriptsChen Qi
If we are building a systemd image with 'sysvinit' not in DISTRO_FEATURES, the initscripts should not be installed into the image, as they are useless. What's more, we as now support executing scripts under /etc/rcS.d, the boot time will be increased by these scripts as the systemd will try to translate them into temporary service files. These init scritps are actually needed only when 'sysvinit' is in DISTRO_FEATURES. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03keymaps: remove dependency on initscriptsChen Qi
The 'keymaps' package actually doesn't have runtime dependency on VIRTUAL-RUNTIME_initscripts, thus removing this dependency. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03at: inherit update-rc.d to handle sysv init scriptChen Qi
Inherit update-rc.d.bbclass to handle sysv init script. Also make the 'at' daemon start in runlevel 2,3,4,5 instead of S. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03at: remove dependency on initscriptsChen Qi
The 'at' package actually doesn't have runtime dependency on VIRTUAL-RUNTIME_initscripts, so remove this dependency. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03rpcbind: avoid entering failed status after stopping daemonChen Qi
Exiting with '2' is actually expected with rpcbind, because it catches SIGTERM and exits with '2' explicitly. The related code is as follows. (void) signal(SIGTERM, terminate); /* * Catch the signal and die */ static void terminate(int dummy /*__unused*/) { close(rpcbindlockfd); unlink(_PATH_RPCBINDSOCK); unlink(RPCBINDDLOCK); syslog(LOG_ERR, "rpcbind terminating on signal. Restart with \"rpcbind -w\""); write_warmstart(); /* Dump yourself */ exit(2); } Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03cups: add systemd supportChen Qi
Add systemd unit files. Also remove sysvinit related files if 'sysvinit' is not in DISTRO_FEATURES. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03cups: make cups daemon start correctlyIn Long
The cups daemon needs the lpadmin group to start correctly. Also add 'procps' to RDEPENDS if 'sysvinit' is in DISTRO_FEATURES, because the init script shipped with cups needs it. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03acpid: upgrade to 2.0.22 and add systemd supportChen Qi
For acpid needs to upgrade to work correctly with the new kernel. The new version now uses autotools. Also add systemd unit file. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03dhcp: add systemd service filesChen Qi
Add dhcpd.service and dhcrelay.service to support systemd systems. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03systemd: add support for executing scripts under /etc/rcS.dChen Qi
This patch adds support for systemd to execute scripts under /etc/rcS.d. To be compitable, all services translated from /etc/rcS.d/ scripts would run before services translated from /etc/rcN.d scripts. [YOCTO #5159] Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03v86d: set INHIBIT_UPDATERCD_BBCLASS if 'sysvinit' not in DISTRO_FEATURESChen Qi
Set INHIBIT_UPDATERCD_BBCLASS to "1" if 'sysvinit' is not in DISTRO_FEATURES. The functionality of the init script 'fbsetup' is implemented internally in systemd. So fbsetup is not installed if 'sysvinit' is in DISTRO_FEATURES. That's why we need to set INHIBIT_UPDATERCD_BBCLASS to "1" to avoid generation of update-rc.d related preinst/postinst scripts. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03systemd: add kbd-keymaps to RRECOMMENDS of systemd-vconsole-setupChen Qi
systemd-vconsole-setup.service not only configures font but also keymaps. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03keymaps: fix for systemdChen Qi
Only install 'keymap.sh' script if 'sysvinit' is in DISTRO_FEATURES. This is because systemd internally provides a mechanism to implement the functionality this script tries to implement. Please see systemd-vconsole-setup.service for more details. Also we set 'INHIBIT_UPDATERCD_BBCLASS' to "1" if 'sysvinit' is not in DISTRO_FEATURES. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03alsa-state: fix pkg_postinst and set INHIBIT_UPDATERCD_BBCLASSChen Qi
As alsa-state inherits update-rc.d, the update-rc.d part inpostinst script has already been handled in update-rc.d.bbclass. Besides, we need to set INHIBIT_UPDATERCD_BBCLASS to "1" if 'sysvinit' is not in DISTRO_FEATURES. This is because the init script is not installed in such situation, adding update-rc.d part in the preinst/postinst scripts just makes no sense. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03update-rc.d: fix logic in populate_packages_updatercdChen Qi
The 'and' logic for the check is wrong. To make things clear, please see the example below. Say that we have a recipe A, which has a sysv-init style init script named initA and no corresponding service file. The recipe inherits update-rc.d, but it doesn't inherit systemd.bbclass. The DISTRO_FEATURES has 'systemd' inside it, but it doesn't have 'sysvinit'. Now if we build an image, with the 'and' logic in the check, the symlinks for initA would not be installed into /etc/rc?.d directory. This is incorrect. Because there's no corresponding service. The symlinks in /etc/rc?.d/ should be created so that the service would be correctly started at boot time. The logic should really be 'or' in the check. This is actually what the code was when it was originally written. Several different situations are listed below to prove the correctness of the 'or' logic. If 'sysvinit' is in DISTRO_FEATURES, the initA script would always be installed with corresponding preisnt/postinst generated and added. If 'sysvinit' is not in DISTRO_FEATURES, we have three situations. 1) A has initA and A.service. In such situation, systemd.bbclass would set INHIBIT_UPDATERCD_BBCLASS, so no preinst/postinst about update-rc.d would be added and the symlinks for initA would not be created. 2) A has initA, and the functionality of initA is not implemented internally in systemd. In such situation, symlinks for initA would be installed. 3) A has initA, and the functionality of initA is implemented internally in systemd or in some other recipe. Examples for such situation are alsa-state and keymaps in OE. In such situation, we need to set INHIBIT_UPDATERCD_BBCLASS in the recipe so that there would be no preinst/postinst scripts about update-rc.d added. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03systemd: make runlevel work in non-runlevel targetsChen Qi
Previously, after booting into the targets like multi-user.target or graphical.target, the output of `runlevel' command is 'unknown'. This is confusing for users. Normally, we would expect mutli-user.target would have a `runlevel' output of 'N 3'. This is the behaviour of Fedora20. This patch installs symlinks for systemd-update-utmp-runlevel.service in do_install task to fix the above problem. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03systemd: add PACKAGECONFIG for 'journal-upload'Chen Qi
Add PACKAGECONFIG for 'journal-upload' and disable it by default. Once enabled, it will add 'curl' to its dependency. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-03systemd: upgrade to 216Chen Qi
Upgrade systemd from 213 to 216. systemd-older-kernel.patch is removed as it's fixed in 216. 0001-uClibc-doesn-t-implement-pwritev-preadv.patch is removed because the file it patches has been removed from the project. 0001-util-Including-missing.h-to-get-MAX_HANDLE_SZ.patch is removed because it has been merged. 0001-missing.h-add-fake-__NR_memfd_create-for-MIPS.patch is backported to fix compilation error for mips. Below are the required kernel versions for systemd 216. Linux kernel >= 3.0 Linux kernel >= 3.3 for loop device partition support features with nspawn Linux kernel >= 3.8 for Smack support Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
2014-09-01python-numpy: Fix build for mips64Khem Raj
Add missing mips64 specific config files Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01grub: Replace _BSD_SOURCE macro with _DEFAULT_SOURCEKhem Raj
This is needed with glibc 2.20 since _BSD_SOURCE macro is gone Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01xf86-video-intel/xf86-video-omapfb: Fix build with glibc 2.20Khem Raj
include xorg-xserver.h Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01xf86-input-synaptics/xf86-input-vmmouse: Fix build with glibc 2.20Khem Raj
Backport the upstream patches needed for them to work with glibc 2.20 Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01bitbake.conf: Use 2.6.32 for oldest supported kernelKhem Raj
glibc 2.20+ wont support any older than that Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01recipes: Remove references to eglibcKhem Raj
change use of eglibc related variabled to glibc equivalents Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01oeqa: sstatetests should now look for glibc-initialKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01image-swab.bbclass: Account for eglibc -> glibc moveKhem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01conf: Account for eglibc->glibc moveKhem Raj
Change references in documentation appropriately Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01distro: TCLIBC now defines glibc instead of eglibcKhem Raj
Adjust naming conventions to reflect eglibc->glibc move Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01glibc: Migrate eglibc 2.19 -> glibc 2.20Khem Raj
- This is a big swoop change where we switch to using glibc - option-groups are forward ported - cross-localedef is extracted out from eglibc and hosted at github.com/kraj/localedef, its used for cross-localedef recipe - Other non ported patches from eglibc are forward ported ppc8xx cache line workaround SH fpcr values dynamic resolver installing PIC archives is there but is not applied libc header bootstrap - Delete eglibc recipes we moved back to using glibc now - Fix ppc/e500 build - Fix crypt module build when options are used - Fix fnmatch build when options OPTION_EGLIBC_LOCALE_CODE is unset HAVE_MBSTATE_T and HAVE_MBSRTOWCS should be defined conditionally based upon OPTION_EGLIBC_LOCALE_CODE being set/unset - Move the ports/ patches to relevant files now that ports is gone Signed-off-by: Khem Raj <raj.khem@gmail.com>
2014-09-01perl: add explicit configs for Time-HiResJackie Huang
The compilation of Time-HiRes tries to compile and run the testing program but definitely fails since we are cross compiling: Looking for clock_gettime()... ./tmp26733: ./tmp26733: cannot execute binary file Looking for clock_getres()... ./tmp26733: ./tmp26733: cannot execute binary file so add explicit configs to avoid the auto detecting. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-01ghostscript: Don't build-depend on libgcrypt for the local cupsJackie Huang
Backported for the ghostscript supplied cups code from http://www.cups.org/strfiles.php/3308/cups-no-gcrypt.patch This addresses the cryto dependency seen during build. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-01native.bbclass: deltask package_qaRobert Yang
The native recipe doesn't need package_qa, and it has a race issue with do_unpack which requires the clean dir of ${S}, then causes error: NOTE: recipe opkg-utils-native-0.1.8+gitAUTOINC+eae0d8fa44-r0: task do_package_qa: Failed ERROR: Task 283 (virtual:native:/path/to/opkg-utils_git.bb, do_package_qa) failed with exit code '1' Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-01linux-yocto: ensure that recipe specific defaults take precedenceBruce Ashfield
In order to make KBRANCH assignments more flexible and easy to override the default in each recipe as changed to a conditional assignment. But the common include file, sets its own branch default to master. This results in the recipes not overriding KBRANCH and master always being used. By putting the include after the default assignment, we now get the proper default branch. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-01kernel-yocto: replace --is-ancestor with basic git porcelain commandsBruce Ashfield
--is-ancestor is a relatively new git option [commit 5907cda1, Aug 30 2012]. To support build machines with older versions of git installed, we can use the basic porcelain commands to acheive the same check. merge-base: "--is-ancestor A B" can be replaced with: if test "$(git rev-parse --verify A)" = "$(git merge-base A B)" Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2014-09-01linux-yocto/3.4: remove 3.4 name recipesBruce Ashfield
Removing the 3.4 recipes, since support has not shifted to 3.10 and 3.14 for LTSI kernel versions, with 3.16+ as the development version. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-01linux-yocto/3.14: update to v3.14.17Bruce Ashfield
Updating the 3.14 repository to the latest korg stable udpate. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-01linux-yocto/3.14: vhost, vxland, openvswitch and block/bfq updatesBruce Ashfield
Updating the linux-yocto/3.14 SRCREVs to integrate more feature additions and backports to the LTSI kernel base: 42477caf6bfd block, bfq: add Early Queue Merge (EQM) to BFQ-v7r5 for 3.14.0 349aa3f0848d block: introduce the BFQ-v7r5 I/O sched for 3.14 121ed2738c47 block: cgroups, kconfig, build bits for BFQ-v7r5-3.14 9925795a3e54 vhost-scsi: Include prot_bytes into expected data transfer length 68fe340cb836 vhost: move memory pointer to VQs 72fa27bcf526 vhost: move acked_features to VQs 757680234478 vhost: replace rcu with mutex 050c1440ac73 vhost-net: extend device allocation to vmalloc d68641313156 vhost/scsi: Enable T10 PI IOV -> SGL memory mapping fb89a8df7f1c vhost/scsi: Add T10 PI IOV -> SGL memory mapping logic 5caf8475ee8a vhost/scsi: Add preallocation of protection SGLs c0785b9490a8 vhost/scsi: Move sanity check into vhost_scsi_map_iov_to_sgl bd947327cdf6 vhost: don't open-code sockfd_put() 83fab2df94c6 openvswitch: Use exact lookup for flow_get and flow_del. 9c185c40f7a8 openvswitch: Fix tracking of flags seen in TCP flows. 0d2455332847 openvswitch: supply a dummy err_handler of gre_cisco_protocol to prevent kernel crash 4513a2fd2703 openvswitch: Fix a double free bug for the sample action 1acf10deff18 openvswitch: Simplify genetlink code. 9ea6a4dea3f5 openvswitch: Minimize ovs_flow_cmd_new|set critical sections. 9e76764432cf openvswitch: Split ovs_flow_cmd_new_or_set(). 7bafcd59a838 openvswitch: Minimize ovs_flow_cmd_del critical section. 67980f929444 openvswitch: Reduce locking requirements. 347f9442b559 openvswitch: Fix ovs_flow_stats_get/clear RCU dereference. c7aa7c522ec0 openvswitch: Fix typo. b244c7b19a55 openvswitch: Minimize dp and vport critical sections. 21883a3ffdb6 openvswitch: Make flow mask removal symmetric. ffa173197cf5 openvswitch: Build flow cmd netlink reply only if needed. f3e8e5c07505 openvswitch: Clarify locking. df42a8f505c2 openvswitch: Avoid assigning a NULL pointer to flow actions. 91b07542da22 openvswitch: Compact sw_flow_key. 24bb1a576332 net/openvswitch: Use with RCU_INIT_POINTER(x, NULL) in vport-gre.c 808868318939 openvswitch: Use TCP flags in the flow key for stats. a57851bae1cf openvswitch: Fix output of SCTP mask. 8b70125106ee openvswitch: Per NUMA node flow stats. 606497442f52 openvswitch: Remove 5-tuple optimization. 01e74b175909 openvswitch: Use ether_addr_copy b5d02cfdc985 openvswitch: flow_netlink: Use pr_fmt to OVS_NLERR output 4da9e8d176f9 openvswitch: Use net_ratelimit in OVS_NLERR ee8f673dd798 openvswitch: Added (unsigned long long) cast in printf b67f35f8b0aa openvswitch: avoid cast-qual warning in vport_priv 3e01428f6e0c openvswitch: avoid warnings in vport_from_priv 069ee359a487 openvswitch: use const in some local vars and casts cbec86356a89 vxlan: add x-netns support a51970560923 vxlan: ensure to advertise the right fdb remote 696068dca072 vxlan: remove unused port variable in vxlan_udp_encap_recv() e94003f3b58d sched/deadline: Fix sched_yield() behavior Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-01kern-tools: allow meta branch and meta data directory to differBruce Ashfield
From the kern-tools commit: tools: allow meta directories that are not the same as the branch name With this change it is now possible to have a meta branch with meta data in a directory that is not the same name as the branch. The changes to three parts of the build are required to discover the name of the meta directory by relying on the fact that in a clean/proper build the meta directory is the only untracked, top level directory in the build. As such, we can restore a checkpoint and then examine the build directory to determine the meta directory name .. avoiding any new variables to indicate this to the scripts and build system. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-01kernel-yocto: convert echo statements to bb* equivalentsBruce Ashfield
Use the bbinfo, bberror, bbfatal equivalents to the existing echo statements within the kernel-yocto processing. This makes us consistent with the other messages from the build system. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-01kernel-yocto: remove KBRANCH_DEFAULTBruce Ashfield
KBRANCH_DEFAULT is no longer used, so we can remove it from all recipes (and it won't be missed). Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-01kernel-yocto: allow custom non-meta, SRCREV format buildsBruce Ashfield
When custom respositories are built (like a pure kernel.org repo), the machine_meta SRCREV format is not applicable. As such, we shouldn't check for the meta branch and we shouldn't only check SRCREV_machine based revisions. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-01kernel-yocto: clean overly complex branch checkoutBruce Ashfield
Since the git fetcher ensures that branches exist, we no longer need to validate the branch and have a conditional checkout of the source. We can remove some checks and ensure that whenever we exit the do_kernel_checkout routine that a branch is always checked out. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2014-09-01kernel-yocto: use show-ref instead of branch -aBruce Ashfield
It's better to check a branches existence via show-ref versus the end user branch commands. So we make the switch. Also as part of this change, we move the conversion of remote branches to local branches above the meta branch checking. This is required to ensure that the branch is local for the show-ref check. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>