aboutsummaryrefslogtreecommitdiffstats
path: root/meta-skeleton
Commit message (Collapse)AuthorAgeFilesLines
* meta-skeleton/meta-selftest: Update to thudRichard Purdie2018-09-251-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* hello-mod_0.1.bb: add RPROVIDESJuro Bystricky2018-04-061-0/+2
| | | | | | | | | | | | | | | | | Although the package will get an automatic prefix "kernel-module", so the package kernel-module-hello does exist, populating rootfs can generate an error: - nothing provides kernel-module-hello ... This is quite unfortunate, as this recipe is used as a sample. Adding RPROVIDES_${PN} += "kernel-module-hello" to the recipe fixes the problem. [YOCTO #12641] Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* layer.conf: Update LAYERSERIES rocko -> sumoRichard Purdie2018-04-061-1/+1
| | | | | | Also set LAYERSERIES_COMPAT for core (we're compatible with ourself). Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta*: Add LAYERSERIES_COMPAT and LAYERSERIES_CORENAMES markup to layer.confRichard Purdie2017-06-091-0/+2
| | | | | | | | | This means mismatched layers are more clearly identified to the user in cases where compatibility has not been tested. This is perhaps not as needed for the core repository (other than CORENAMES) but lets lead by example. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd-example: exclude from worldKai Kang2017-01-091-0/+2
| | | | | Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* Remove $COREBASE/LICENSE from LIC_FILES_CHKSUMOlaf Mandel2016-10-281-2/+1
| | | | | | | | | | | | | | | | | | | Several recipes reference the LICENSE file in their LIC_FILES_CHKSUM variable as ${COREBASE}/LICENSE. This forces distribution providers to keep this file verbatim or to overload the affected recipes. The section "Moving to the Yocto Project 1.6 Release" in the Yocto manual suggests removing the LICENSE file where possible. Remove LICENSE in cases where COPYING.MIT is also given and replace LICENSE with COPYING.MIT if the former was the only entry. All modified recipes specify LICENSE = "MIT" and none of the in-tree files specify a different license either. As the packages do not change (the license files are not contained in them), do not increase PR. Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* service: obey CFLAGS, LDFLAGSChristopher Larson2016-07-081-1/+1
| | | | | Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* linux-yocto-custom: fix typo in Upstream-Status tagRoss Burton2015-10-191-1/+1
| | | | Signed-off-by: Ross Burton <ross.burton@intel.com>
* linux-yocto-custom: Update for newer kernelSaul Wold2015-10-012-17/+19
| | | | | | | | | | Update the NAME version tweak example patch for the newer kernel. This moves the example to the 4.2 stable kernel and appends -custom to the VERSION string. Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* service: tweak example recipePaul Eggleton2015-08-241-4/+3
| | | | | | | | * Drop PR = "r0" * Reorder lines so that packaging definitions are at the end Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* hello-mod: drop PV and PRPaul Eggleton2015-08-241-3/+0
| | | | | | | | | * PR = "r0" is the default, no need to set it (and most people won't need to set it anyway with the PR service) * PV = "0.1" is already set by virtue of 0.1 being in the filename Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
* linux-yocto-custom: clarify bbappend versus copy in commentsBruce Ashfield2015-05-221-5/+5
| | | | | | | | | | | | | The kernel development manual recommends making a copy of linux-yocto-custom, while the comments in the recipe talk about bbappends. To synchronize the two, we remove the bbappend references from the recipe and instead indicate that a copy should be updated. [YOCTO: #6925] Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* skeleton: clarify linux-yocto-custom workflowBruce Ashfield2015-03-241-4/+2
| | | | | | | | | | | | | | It was pointed out that the kernel development documentation recommends making a copy of linux-yocto-custom, while the comments in the recipe itself suggest a bbappend. To keep things consistent between these two sources, we update the comment in the recipe itself to also recommend a copy (and rename). [YOCTO: #6925] Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto-custom: provide defconfig guidanceBruce Ashfield2014-05-061-0/+10
| | | | | | | | | | As reported by Andrea, defconfigs created with savedefconfig should specify their expansion mode as "--alldefconfig' for custom yocto recipes. To ensure that this is documented, we can add a comment in the skeleton recipe. Reported-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* meta-skeleton: Add name attribute to SRC_URIJukka Rissanen2014-03-271-1/+1
| | | | | | | | | | | | | | The SRCREV_machine line does not work without having name=machine attribute in SRC_URI. This error is seen if the custom kernel recipe is used without the name attribute: NOTE: Error during finalise of .../linux-yocto-custom.bb ERROR: ExpansionError during parsing .../linux-yocto-custom.bb: Failure expanding variable do_patch: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure for URL: 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1'. Please set a valid SRCREV for url ['SRCREV_default_pn-linux-yocto-custom', 'SRCREV_default', 'SRCREV_pn-linux-yocto-custom', 'SRCREV'] (possible key names are git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1, or use a ;rev=X URL parameter) Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto-custom: Use SRCREV_machineDarren Hart2014-03-171-1/+1
| | | | | | | | | | | | The Yocto kernel tools look for SRCREV_machine in do_validate_branches, if it's empty, it just returns and silently continues. This likely needs at least a warning. However, this recipe should be using SRCREV_machine, and not just SRCREV. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Reported-by: Saul Wold <sgw@linux.intel.com> Cc: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues (part 2)Matthieu Crapet2014-02-201-1/+1
| | | | | | | | | | | | | | | Completes previous commit b5292d4115a4555a66b5e35acdc67dd71fb8577f. Updates SUMMARY[doc] (meta/conf/documentation.conf). Changes: - rename DESCRIPTION with length < 80 to (non present tag) SUMMARY - drop final point character at the end of SUMMARY string - remove trailing whitespace of SUMMARY line Note: don't bump PR Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* meta-skeleton: rename busybox's bbappend fileChen Qi2014-02-021-0/+0
| | | | | | | | As busybox has been upgraded, rename this bbappend file to make it match the current version of busybox. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* Update after toplevel LICENSE file checksum changeRichard Purdie2014-01-021-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Fix license notices for OE-CorePaul Eggleton2014-01-021-0/+17
| | | | | | | | | | | | | | * Fix up LICENSE: - Replace reference to Poky with OpenEmbedded - Remove reference to bitbake and meta-extras that aren't part of this repository - Clarify license statements * Add a COPYING.GPLv2 file in meta/ for the GPLv2 parts * Add a COPYING.MIT file to meta-skeleton consistent with the other meta-* directories Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Replace one-line DESCRIPTION with SUMMARYPaul Eggleton2014-01-021-1/+1
| | | | | | | | | | | A lot of our recipes had short one-line DESCRIPTION values and no SUMMARY value set. In this case it's much better to just set SUMMARY since DESCRIPTION is defaulted from SUMMARY anyway and then the SUMMARY is at least useful. I also took the opportunity to fix up a lot of the new SUMMARY values, making them concisely explain the function of the recipe / package where possible. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
* useradd-example: add example for setting clear text passwordChen Qi2013-12-141-1/+2
| | | | | | | | Use '-P' option for user3 to set a clear text password. This is supposed to serve as an example of how to set clear text password in recipes. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* hello-mod: Add comment for kernel module package namingYang Shi2013-08-201-0/+3
| | | | | | | | modules bbclass renames kernel module packages with "kernel-module-" prefix automatically. Signed-off-by: Yang Shi <yang.shi@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* Revert "hello-mod: Ensure the produced package name begins with kernel-module-"Yang Shi2013-08-201-8/+0
| | | | | | | | | | | | | [YOCTO #4286] The package runtime mapping rename issue is already fixed by commit 0bc564af07c1bae8112f834a60aea3b72af7de13, the "kernel-module-" workaround is not necessary anymore for out-of-tree module package, so revert that commit. This reverts commit 71aafc214fe407b7620e747c11dfb8326c867b1c. Signed-off-by: Yang Shi <yang.shi@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* meta-skeleton: layer.conf Should also have .bbappend in exampleSaul Wold2013-08-141-1/+1
| | | | | | | This will allow for an example recipe with a .bbappend, such as busybox or kernel configure fragments. Signed-off-by: Saul Wold <sgw@linux.intel.com>
* meta-skeleton: Add busybox config fragment exampleSaul Wold2013-08-132-0/+13
| | | | | | | | | | | | | | | | | This shows an example of the config fragment support that both the linux-yocto and busybox recipes use. This example is specific to busybox. By adding busybox CONFIG options into a .cfg file and then adding that .cfg file to SRC_URI the merge_config.sh script will correctly handle these CONFIG options during the do_configure task. The merge_config.sh script uses a last-in wins method. For more details about this, see the Kernel Development Manual Section 2.2.3 http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#changing-the-configuration Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* hello-mod: Ensure the produced package name begins with kernel-module-Mark Hatle2013-04-131-0/+8
| | | | | | | | | | | | | | | The special key kernel-module- is necessary for the system to avoid a package rename when installing a multilib image. For example: local.conf: IMAGE_INSTALL_append = " hello-mod" bitbake lib32-core-image-minimal The system will translate names and prepend 'lib32-', unless the package begins with kernel-module-. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta-*/conf/layer.conf: tweak BBFILES commentPaul Eggleton2013-04-101-1/+1
| | | | | | | | "packages" was the old name (pre-2010) under which the recipe files were stored. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* core-image-multilib-example: Location of core-image-sato.bb changedMark Hatle2013-03-201-1/+1
| | | | | | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* layer.conf: avoid unnecessary early expansion with :=Christopher Larson2013-03-191-3/+3
| | | | | | | bitbake handles immediate expansions of LAYERDIR for us automatically. Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* layer.conf: Add LAYERVERSION and LAYERDEPENDSwenzong.fan@windriver.com2013-03-181-0/+5
| | | | | | | | | Add LAYERVERSION and LAYERDEPENDS to following oe-core layers: meta-hob, meta-skeleton Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
* meta-skeleton: Add example multilib usagesRichard Purdie2013-02-253-0/+39
| | | | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto-custom: Clarify defconfig usageDarren Hart2012-10-031-1/+2
| | | | | | | | | | It is necessary to supply file://defconfig to the SRC_URI when using a defconfig (it is not implicitly understood as the commentary might currently suggest). Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto-custom: Clarify usage and clear COMPATIBLE_MACHINEDarren Hart2012-08-071-17/+36
| | | | | | | | | | | | | | | | | | | | | | There has been some confusion over proper use of the linux-yocto-custom recipe. It is not intended to build as is from meta-skeleton. It should be modified via a bbappend file to provide a Linux kernel config at the very least. Update the commentary to make this requirement more explicit. Add some additional detail about how to create a bbappend file and how and when to modify the various variables. Clear COMPATIBLE_MACHINE so bitbake will not attempt to build the recipe unless the user explicitly adds there machine to the variable, which should encourage them to read the recipe comments before attempting to build it. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Bruce Ashfield <bruce.ashfield@windriver.com> CC: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* useradd-example: use ${datadir} instead of /usr/share for packagingJavier Martinez Canillas2012-08-061-18/+18
| | | | | | | | It is considered good practice to use the build system provided variables instead of directly specify hardcoded paths. Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-yocto-custom: Remove linux-toolsDarren Hart2012-07-031-2/+0
| | | | | | | | | | Remove the linux-tools include as perf is now packaged independently. Without this, including meta-skeleton in bblayers.conf results in a build failure as linux-tools.inc cannot be found. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Acked-by: Bruce Ashfield <bruce.ashfield@windriver.com> CC: Tom Zanussi <tom.zanussi@intel.com>
* meta-skeleton: add linux-yocto-custom reference recipeBruce Ashfield2012-06-184-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding a skeleton/refrence recipe for using a subset of the yocto kernel tools against kernel git repositories. Sample/reference configuration fragments, features and a patch are provided and documented in the recipe. From the recipe itself: Provides an example/minimal kernel recipe that uses the linux-yocto and oe-core kernel classes to apply a subset of yocto kernel management to git managed kernel repositories. Notes: kconfig(s): the kernel must be configured with a defconfig, or via configuration fragment(s). Either of these can be added via bbappend. patches: patches can be merged into to the source git tree itself, added using standard bbappend syntax or controlled via .scc feature descriptions (also via bbappends) example configuration addition: SRC_URI += "file://smp.cfg" example patch addition (for kernel v3.4 only): SRC_URI += "file://0001-linux-version-tweak.patch example feature addition (for kernel v3.4 only): SRC_URI += "file://feature.scc" Warning: Building the sample kernel tree (kernel.org) without providing any configuration will result in build or boot errors. This is not a bug it is a required element for creating a valid kernel. [YOCTO #2397] Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* hello-mod: Move hello-mod from meta to meta-skeletonDarren Hart2012-04-104-0/+402
| | | | | | | | | | Fixes [YOCTO #1501] hello-mod is an example kernel module, and does not provide any real functionality. As such, it would be better placed under meta-skeleton than meta. Signed-off-by: Darren Hart <dvhart@linux.intel.com>
* useradd-example.bb: update example documentation commentsScott Garman2011-11-101-5/+4
| | | | | | | Clarify that only packages listed in USERADD_PACKAGES will include the user/group creation code. Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* useradd-example: example recipe for using inherit useraddScott Garman2011-07-015-0/+76
| | | | | | | An example recipe for demonstrating/documenting how user and group manipulation is done with 'inherit useradd' Signed-off-by: Scott Garman <scott.a.garman@intel.com>
* Add a skeleton for init scriptsRobert Yang2011-05-184-0/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a skeleton for init scripts, the original structure is from /etc/init.d/skeleton of Ubuntu 10.10, it is in sysvinit_2.87dsf, so add the COPYRIGHT(GPLv2) of sysvinit_2.87dsf. Modified the original skeleton a lot to make it as easy as possible, just use posix shell command, and have tested it with core-image-minimal. * The skeleton implements the following actions: - start, stop, restart, status, try-restart and force-reload. # force-reload is a alias of try-restart. - not implements reload, since only a few programs have it, just leave it as placeholder. * Add /usr/sbin/skeleton-test to test /etc/init.d/skeleton * The /etc/init.d/skeleton can be run and output the example messages: 1) #./skeleton start (test start) Starting skeleton ... 2) #./skeleton start (test start again when running) skeleton already running (1078). 3) #./skeleton status (test status when running) skeleton is running (1078). 4) #./skeleton stop (test stop) Stopped skeleton (1078). 5) #./skeleton stop (test stop again) skeleton is not running; none killed. 6) #./skeleton status (test status when stopped) skeleton is not running. 7) #./skeleton restart (test restart when running) Stopped skeleton (1128). Starting skeleton ... 8) #./skeleton restart (test restart when stopped) skeleton is not running; none killed. Starting skeleton ... 9) try-restart (or force-reload) means restart the service if the service is already running #./skeleton try-restart (test try-restart when stopped) skeleton is not running; none killed. #./skeleton try-restart (test try-restart when running) Stopped skeleton (1181). Starting skeleton ... * Have used syslogd to test it in a real world(with both core-image-minimal and core-image-sato) Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
* Add the layer meta-skeletonRobert Yang2011-05-181-0/+10
Add the layer meta-skeleton, it will be used to place the various canonical examples. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>