Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: Id34919aa6db778cafd3ec57b43cc82afba686d6a
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
By adding busybox to the install list, we ensure its dependencies
are compiled. Since busybox provides /bin/sh and all RPMs depend
on /bin/sh, we need this anyhow.
Fixes openbmc/openbmc#506.
Change-Id: Iaa41c5a05a508a745c33d14e9e6739b2c44be64a
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Change-Id: Ic7491464ef5acf39ad36b03178aa715c244a5329
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Change-Id: I50a03205faf28f6ae19bf3ff1c0e58f7b0448bc5
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
This was mistakenly pointed at my personal repository.
Change-Id: I24c758ecfaf27f3ce1992a572c9f7f7f0e33de92
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Bump:
- host-ipmid
- host-ipmid-fru
- skeleton
- pyphosphor
- obmc-mapper
Enable libmapper in obmc-mapper.
Change-Id: I73a3a363821db80cc1883c431a7aff0f90717e58
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Enable native recipes to inherit the following classes:
skeleton-python
skeleton-sdbus
skeleton-gdbus
dbus-dir
obmc-phosphor-dbus-service
Change-Id: I1d79ffc38792dd48016f09119fc8ace46a304a4b
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Add DBUS_ACTIVATED_SERVICES_% which allows recipes to specify that
a service can be dbus activated.
Generate a default dbus activation file if none is provided.
Change-Id: Ie18b0968f97762c22f5e0e2e14b493d7ae8261cd
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Instantiate obmc-phosphor-systemd and translate SYSTEMD_%
variables appropriately.
This enables systemd unit files that adhere to the standard
naming convention:
<dbus service name>.service
to be found via DBUS_SERVICE_${PN} and inherit the functionality
of the obmc-phosphor-systemd class.
Add DBUS_USER_%s_%s and translate to SYSTEMD_USER_%s_%s appropriately.
Change-Id: I14f2f6eac60add478c1793da29ba15518dcd958e
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Create a default dbus configuration file when one doesn't exist in
${FILESPATH}.
The default configuration allows the configured user to own the
service name and allows send_destination="*".
Change-Id: If309d2aed02f6326201ce156be3133f05c720b9c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Take the more idiomatic approach of iterating on
DBUS_PACKAGES to find files.
Change-Id: I7656316b839f666bd1b25b757bef2c14a2cee326
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Export some commonly used dbus paths for use by recipes.
Similar to python-dir in the base.
Change-Id: Id3723766338e06a5c6934ab7c55524546ce582a6
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Add a SYSTEMD_USER_${PN}_foo.service variable for setting
the service user in systemd service files.
Change-Id: I9354b19f6cf5563fe33ee71dc5b8b07c4f380847
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Add functionality for enabling python str.format()ing
of systemd unit files.
Add a variable name to SYSTEMD_SUBSTITUTIONS_${unit}
and its value will be substituted into any matching
python string {format}'s in the unit file during install.
Preconfigured variables:
base_bindir -> ${base_bindir}
bindir -> ${bindir}
sbindir -> ${sbindir}
DEFAULT_INSTALL_TARGET -> 'obmc-standby.target'
Change-Id: Ife5003e1fc6766bf148a80663c35ab50c6002d26
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com
|
|
Print a warning if a systemd service unit is detected without
a restart policy defined. To inhibit:
INHIBIT_SYSTEMD_RESTART_POLICY_WARNING += "${UNIT}"
Change-Id: I27436276425d028d892c7c98736781e8577ad8eb
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Take the more idiomatic approach of iterating on
SYSTEMD_PACKAGES to find service files.
The OBMC_SYSTEMD_SERVICE variable isn't meant to be used directly by
recipes. Rename it to something that seems less public.
Change-Id: If031937d4716b9c7e6ac1be506457e41109b69c1
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
classes-systemd: bug fix and best practices.
|
|
classes-utils: Whitespace fixes
|
|
This is what all the classes that come with Yocto do.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Four spaces for python code.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Missing space and path sep in the generated path.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Reduce the number of files to be updated after a
skeleton update from two to one.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Pick up fixes and the ability to update at runtime and get the
bmc code update progress.
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
Update flash update to be useable at runtime.
|
|
A number of classes to be used by recipes pointing to the skeleton
project.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Create a cpio containing the base read-only image, and create a
single combined initramfs image consisting of the image-rofs
and the existing initramfs.
There has been a desire to have a self contained netboot image present
for developer testing and experimentation. The init script already
supports having the rofs layer sourced from a file packaged into the
initramfs, and will use it if found.
While this image will not fit in the current flash layout in
the initrd space, it will load over the network. This method
leaves the squashfs compressed in RAM, decompreses is invoked as
needed at runtime, trading boot time and memory space for runtime
decompress on demand. This will also give similar file access
overheads and performance to reading the data from flash.
Because the rofs is already compressed with xz compression,
don't try to compress this cpio (the cpio packaging adds about 40
bytes of ascii before and after, plus some alignment padding).
Because the kernel requires uncompressed cpios to appear on a
4-byte boundary with 0 byte fill between archives, place this
cpio first in the combined image.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
|
|
Per Yocto commit 3341f3fb, we should depend on do_image_complete
instead of do_rootfs for the initrd images.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
The use of the DATETIME variable has issues with the sstate cache
because of the variable changing values, and therefore the checksum
used for sstate calculation also changing.
Other existing recipes add DATETIME to the 'vardepsexclude' list.
This case is glossed over very rapidly in section 21.3.2 "Checksums"
of the Mega Manual.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Previously, obmc-bsp-common.inc added "overlay" to the IMAGE_FSTYPES
but this only has meaning if the 'image-overlay' class is used. The
obmc-phosphor-image class explicitly includes 'image-overlay' when
appropriate but no other images (ie. ones that come with yocto) do.
Changed obmc-bsp-common to instead enable an obmc-phosphor-image feature
by setting OBMC_PHOSPHOR_IMAGE_OVERLAY=1. Then in obmc-phosphor-image we
add "overlay" to the IMAGE_FSTYPES only when the feature is enabled.
This will fix both non-phosphor images on hardware platforms and all images
on simulation platforms.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Because the recipe was named with trailing part init instead
of initfs, the package didn't match the package name requiring
PROVIDES, RPROVIDES and other bitbake workarounds. Fix the recipe
name to match the package removing the overly verbose packaging.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
|
|
The generate_flash_image step was creating a file then using dd to
fill in the pieces, but missed adding the conv=notrunc flag, so each
step was shortening the file to its output.
Add the forgotten conversion flag to each dd command.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
|
|
The rest-dbus package is a lightweight REST interface intended
for development debug. Classify it as a dev package so that it
is easy to remove from production images.
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
|
Skeleton now invokes python setuptools to install its python
applications in a top level makefile, so a build time dependency
on native-python is required.
It should be noted that skeleton invoking python from make is
an interim thing until its python applications get their own
repository.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
This patch introduces a new abstraction 'skeleton-workbook'
for representing a system configuration. At present it is
pulled in by the skeleton recipe so the requirement on what is
implemented by a package providing obmc-phosphor-workbook is something
compatible with the existing System.py python modules in skeleton.
Additionally this patch adds a new recipe for each system using
a configuration file from skeleton today, and a class for common
configuration.
This enables a couple of things:
- No need to patch skeleton.service for each system.
- New systems don't have to put their configuration in the skeleton
repository.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Prior to this patch packagegroup-core-boot was not being pulled in.
core-boot is what brings in the init_manager (systemd) but
somehow systemd was added as a dependency by OE for the skeleton package
so the missing core-boot packagegroup went unnoticed.
core-boot was not being pulled in because of an assignment to
IMAGE_INSTALL in the global configuration. Yocto core provides a
mechanism to do the same thing safely - CORE_IMAGE_EXTRA_INSTALL;
use this and also adopt a similar approach for adding extra packages
to image recipes using obmc-phosphor-image.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
Enhance obmc-phosphor-systemd such that an array of service/template
socket files in SYSTEMD_SERVICES_${PN} works.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
The issue that prevented obmc-console from compiling was has been fixed
in f5858b5bf, so bump to a recent obmc-console version, and reenable.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
|
|
See openbmc/obmc-console#2 for failure details.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
This change introduces obmc-console, a little daemon to handle the UART
data and multiplex it to a log and client processes.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
|
|
Add the inarp package to the base image. If users later want
to turn it off and not have it be part of the base image,
it can be changed to a distro spec then.
|
|
This attempts to address a race condition in the build where
we attempt to build a complete flash image before all the sub-images
are available (specifically the initramfs image).
Any classes in IMAGE_CLASSES are inherited by all image recipes, including
the initramfs image. OE-Core's live/hddimg recipes address this
by pulling in the class configuration in recipe scope, rather than
global scope. Copy that behavior here.
|
|
Indent was only seven spaces. No functional changes.
|
|
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
Moves the ext4-specific mkfs options out to configuration variables.
OVERLAY_MKFS_OPTS can be overridden using the usual bitbake OVERRIDES
mechanism, where the override postfix is 'rwfs-${OVERLAY_BASETYPE}',
e.g. rwfs-ext4.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
An erased NOR partition is considered to be a valid JFFS2 filesystem
(i.e. can be successfully mounted as JFFS2). As such there's no need to
execute mkfs to produce an empty JFFS2 image if the target partition is
in the erased state. Thus, when generating the flash-palmetto and
image-rwfs image files, start with a base image file in the erased state
(with all bits set).
The change shifts the common logic to generate the base image files into
a shell function.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
It was inconsistent with the rest of the file, which seems to use 7
spaces. In particular, vim-sleuth was detecting the indentation style
from the first indent(s) in the file, which were in the oe_mkimage
function.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
Create virtual class to include user management in the image
Add the systemd patch for network support to the systemd recipe
Update the IPMI recipe to pickup the support for network configuration
|
|
|
|
Signed-off-by: Norman James <nkskjames@gmail.com>
|
|
This commit creates a new class image-overlay based on how the
image-live class is structured. It takes parameters for the base
and overlayed file system types but the initfs only support ext4
over squashfs presently.
It then moves invoking the generation of the flash image from a
post image creation command to a separate task invoked from the
overlay image so that building the initramfs image by itself does
not try to create a flash image.
Signed-off-by: Milton Miller <miltonm@us.ibm.com>
|