-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webos-image: Update layer pins for 2018-03-17 (build 1)
webOS Open Source Edition initial release
- Loading branch information
Changhyeok Bae
committed
Mar 17, 2018
0 parents
commit 1e7e06b
Showing
13 changed files
with
2,758 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright (c) 2012-2014 LG Electronics, Inc. | ||
|
||
# A leading / matches only entries in the top-level directory | ||
# A trailing / matches only directories | ||
# A trailing / is not added to directories which are often replaced with symlink | ||
|
||
# Common Eclipse project files | ||
.project | ||
.cproject | ||
.pc | ||
|
||
# Editor backup files | ||
*~ | ||
|
||
# Build products worth keeping between clean builds | ||
/sstate-cache | ||
/buildhistory | ||
/downloads | ||
/cache | ||
|
||
# Other build products | ||
/BUILD/ | ||
/BUILD-ARTIFACTS/ | ||
/Makefile | ||
TAGS | ||
/bitbake.lock | ||
/mcf.status | ||
/oe-init-build-env | ||
/conf/ | ||
__pycache__/ | ||
tmp/ | ||
patches/ | ||
|
||
# Artifacts from generating build_changes.log | ||
build_changes.log | ||
latest_project_baselines*txt | ||
|
||
# Checkouts managed by mcf | ||
/bitbake | ||
/oe-core | ||
/meta-* | ||
|
||
# Local override file | ||
/webos-local.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Copyright (c) 2013 LG Electronics, Inc. | ||
|
||
This software contains code licensed as described in COPYING.MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
build-webos | ||
=========== | ||
|
||
Summary | ||
------- | ||
Build webOS OSE (Open Source Edition) images | ||
|
||
Description | ||
----------- | ||
This repository contains the top level code that aggregates the various [OpenEmbedded](http://openembedded.org) layers into a whole from which webOS OSE images can be built. | ||
|
||
Cloning | ||
======= | ||
Set up build-webos by cloning its Git repository: | ||
|
||
git clone https://github.com/webosose/build-webos.git | ||
|
||
Note: If you populate it by downloading an archive (zip or tar.gz file), then you will get the following error when you run mcf: | ||
|
||
fatal: Not a git repository (or any parent up to mount parent). | ||
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYTEM not set). | ||
|
||
|
||
Prerequisites | ||
============= | ||
Before you can build, you will need some tools. If you try to build without them, bitbake will fail a sanity check and tell you what's missing, but not really how to get the missing pieces. On Ubuntu, you can force all of the missing pieces to be installed by entering: | ||
|
||
$ sudo scripts/prerequisites.sh | ||
|
||
Also, the bitbake sanity check will issue a warning if you're not running under Ubuntu 14.04 64bit LTS. | ||
|
||
|
||
Building | ||
======== | ||
To configure the build for the raspberrypi3 and to fetch the sources: | ||
|
||
$ ./mcf -p 0 -b 0 raspberrypi3 | ||
|
||
The `-p 0` and `-b 0` options set the make and bitbake parallelism values to the number of CPU cores found on your computer. | ||
|
||
To kick off a full build of webOS OSE, make sure you have at least 100GB of disk space available and enter the following: | ||
|
||
$ make webos-image | ||
|
||
This may take in the neighborhood of two hours on a multi-core workstation with a fast disk subsystem and lots of memory, or many more hours on a laptop with less memory and slower disks or in a VM. | ||
|
||
|
||
Images | ||
====== | ||
The following images can be built: | ||
|
||
- `webos-image`: The production webOS OSE image. | ||
- `webos-image-devel`: Adds various development tools to `webos-image`, including gdb and strace. See `packagegroup-core-tools-debug` and `packagegroup-core-tools-profile` in `oe-core` and `packagegroup-webos-test` in `meta-webos` for the complete list. | ||
|
||
|
||
Cleaning | ||
======== | ||
To blow away the build artifacts and prepare to do clean build, you can remove the build directory and recreate it by typing: | ||
|
||
$ rm -rf BUILD | ||
$ ./mcf.status | ||
|
||
What this retains are the caches of downloaded source (under `./downloads`) and shared state (under `./sstate-cache`). These caches will save you a tremendous amount of time during development as they facilitate incremental builds, but can cause seemingly inexplicable behavior when corrupted. If you experience strangeness, use the command presented below to remove the shared state of suspicious components. In extreme cases, you may need to remove the entire shared state cache. See [here](http://www.yoctoproject.org/docs/latest/overview-manual/overview-manual.html#shared-state-cache) for more information on it. | ||
|
||
|
||
Building Individual Components | ||
============================== | ||
To build an individual component, enter: | ||
|
||
$ make <component-name> | ||
|
||
To clean a component's build artifacts under BUILD, enter: | ||
|
||
$ make clean-<component-name> | ||
|
||
To remove the shared state for a component as well as its build artifacts to ensure it gets rebuilt afresh from its source, enter: | ||
|
||
$ make cleanall-<component-name> | ||
|
||
Adding new layers | ||
================= | ||
The script automates the process of adding new OE layers to the build environment. The information required for integrate new layer are; layer name, OE priority, repository, identification in the form branch, commit or tag ids. It is also possible to reference a layer from local storage area. The details are documented in weboslayers.py. | ||
|
||
Copyright and License Information | ||
================================= | ||
Unless otherwise specified, all content, including all source code files and | ||
documentation files in this repository are: | ||
|
||
Copyright (c) 2008-2018 LG Electronics, Inc. | ||
|
||
Unless otherwise specified or set forth in the NOTICE file, all content, | ||
including all source code files and documentation files in this repository are: | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this content except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# DO NOT MODIFY! This script is generated by mcf. Changes made | ||
# here will be lost. The source for this file is in build-templates/Makefile.in. | ||
# | ||
# Copyright (c) 2008-2014 LG Electronics, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
srcdir := @srcdir@ | ||
machines := @machines@ | ||
|
||
TIME := time | ||
|
||
webos-image: | ||
all: webos-image | ||
|
||
force:;: | ||
|
||
oe-init-build-env mcf.status Makefile conf/local.conf conf/bblayers.conf: \ | ||
$(srcdir)/build-templates/oe-init-build-env.in \ | ||
$(srcdir)/build-templates/mcf-status.in \ | ||
$(srcdir)/build-templates/Makefile.in \ | ||
$(srcdir)/build-templates/local-conf.in \ | ||
$(srcdir)/build-templates/bblayers-conf.in | ||
./mcf.status | ||
|
||
# everything else is already set by oe-init-build-env | ||
BITBAKE := . $(srcdir)/oe-init-build-env && bitbake | ||
|
||
### intended for command line use | ||
BBFLAGS = | ||
|
||
%:; for MACHINE in $(machines) ; do $(BITBAKE) $(BBFLAGS) $*; done | ||
|
||
define convenience | ||
$(1)-$(2)-%:; export MACHINE=$(1) && $(TIME) $(MAKE) $(2)-$$* | ||
$(1)-%:; for MACHINE in $(machines) ; do $$(BITBAKE) $(BBFLAGS) -c $(1) $$*; done | ||
endef | ||
|
||
conveniences := \ | ||
clean \ | ||
cleanall \ | ||
cleansstate \ | ||
compile \ | ||
configure \ | ||
fetch \ | ||
fetchall \ | ||
install \ | ||
listtasks \ | ||
package \ | ||
patch \ | ||
patchall \ | ||
unpack \ | ||
unpackall \ | ||
|
||
# Used by _bitbake() in bitbake-bash_completion | ||
_display_conveniences: | ||
@echo $(conveniences) | ||
|
||
$(foreach c, $(conveniences),$(eval $(call convenience,$(c)))) | ||
|
||
# In most cases, "install-foo" is a coded request | ||
# for 'bitbake -c install foo'. However, at least one component has a | ||
# name prefixed by "install-". Hence the need for the "just-" target | ||
# which lets us name "just-install-first" in order to request | ||
# "install-first". (Yes, I'm sorry it's complicated.) | ||
just-%:; $(BITBAKE) $(BBFLAGS) $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) 2008-2017 LG Electronics, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
## | ||
|
||
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf | ||
# changes incompatibly | ||
LCONF_VERSION = "7" | ||
|
||
BBPATH = "${TOPDIR}" | ||
|
||
# Pull in two optional configuration files to allow the user to override | ||
# component source directories, shared state locations, etc. | ||
# | ||
# webos-global.conf (in the user's home directory) applies overrides to | ||
# all clones of openwebos/build-webos in the user's account. | ||
# | ||
# webos-local.conf resides at the top of the build-webos repo and applies | ||
# overrides on a per-repo basis. | ||
# | ||
# Including both here saves the user remmebering to chain to the local | ||
# file from the global one, avoids them forgetting to do so, and makes | ||
# the existence of a global override file optional. | ||
# | ||
# The location of the shared-state cache can be moved by overriding | ||
# DL_DIR and SSTATE_DIR. | ||
# | ||
# The meta-webos layer can be moved out-of-tree by overriding WEBOS_LAYER. | ||
# Note that running mcf will still clone and checkout a meta-webos directory | ||
# in the root of the repo, but "make" will ignore it and use the overridden | ||
# location for recipes etc. The first time you move a meta-webos layer out of | ||
# tree may invalidate your shared state information, as a result of recloning | ||
# the meta-webos layer. | ||
|
||
# NOTE: directory names META_*LAYER are used in scripts/bitbake.bash_completion |
Oops, something went wrong.