summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes
AgeCommit message (Collapse)AuthorFilesLines
2016-08-17skeleton-rev.bbclass: bump versionPatrick Williams1-1/+1
Change-Id: Id34919aa6db778cafd3ec57b43cc82afba686d6a Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-08-16debug-tarball: Add busybox to install list.Patrick Williams1-1/+1
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>
2016-08-10obmc-phosphor-image: Enable debug tarballPatrick Williams1-0/+2
Change-Id: Ic7491464ef5acf39ad36b03178aa715c244a5329 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-08-10meta-phosphor: Create debug tarball imagePatrick Williams1-0/+16
Change-Id: I50a03205faf28f6ae19bf3ff1c0e58f7b0448bc5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-08-08Point skeleton back at upstreamBrad Bishop1-2/+2
This was mistakenly pointed at my personal repository. Change-Id: I24c758ecfaf27f3ce1992a572c9f7f7f0e33de92 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-29Recipe updatesBrad Bishop1-2/+2
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>
2016-07-28classes: prepare some classes for nativeBrad Bishop4-8/+25
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>
2016-07-28classes-dbus: Add support for dbus activationBrad Bishop1-9/+61
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>
2016-07-28classes-dbus: Instantiate obmc-phosphor-systemdBrad Bishop1-5/+38
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>
2016-07-28classes-dbus: Create a default dbus config fileBrad Bishop1-6/+38
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>
2016-07-28classes-dbus: General refactoringBrad Bishop1-11/+36
Take the more idiomatic approach of iterating on DBUS_PACKAGES to find files. Change-Id: I7656316b839f666bd1b25b757bef2c14a2cee326 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-28classes: Add dbus-dirBrad Bishop1-0/+2
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>
2016-07-28classes-systemd: Add userBrad Bishop1-0/+38
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>
2016-07-28classes-systemd: Add format strings to unit filesBrad Bishop1-0/+42
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
2016-07-28classes-systemd: Add restart policy warningBrad Bishop1-2/+37
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>
2016-07-28classes-systemd: General refactoringBrad Bishop2-25/+37
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>
2016-07-11Merge pull request #463 from bradbishop/systemdPatrick Williams1-9/+8
classes-systemd: bug fix and best practices.
2016-07-11Merge pull request #460 from bradbishop/whitespacePatrick Williams1-5/+8
classes-utils: Whitespace fixes
2016-07-11classes-systemd: Use PN rather than BPNBrad Bishop1-7/+7
This is what all the classes that come with Yocto do. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-11classes-utils: Whitespace fixesBrad Bishop1-5/+8
Four spaces for python code. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-11classes-systemd: Fix FILES_${PN} path bugBrad Bishop1-3/+2
Missing space and path sep in the generated path. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-11Add skeleton-rev classBrad Bishop3-3/+9
Reduce the number of files to be updated after a skeleton update from two to one. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-07-05Bump skeleton version for v1.0-stableAdriana Kobylak1-1/+1
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>
2016-07-05Merge pull request #297 from mdmillerii/runtime-updatePatrick Williams2-9/+15
Update flash update to be useable at runtime.
2016-06-30Add skeleton classesBrad Bishop4-0/+26
A number of classes to be used by recipes pointing to the skeleton project. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2016-06-26image-types_uboot: Package a self contained netboot imageMilton Miller1-0/+10
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>
2016-06-24image-overlay: depend on do_image_completePatrick Williams1-2/+2
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>
2016-06-24obmc-phosphor-image: Improper use of DATETIMEPatrick Williams1-0/+2
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>
2016-06-24meta-phosphor: Make image-overlay an optional featurePatrick Williams1-5/+6
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>
2016-06-23initfs: Fix recipe, remove unnecessary classMilton Miller1-4/+0
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>
2016-06-23image_types_uboot: Don't truncate when assembling flashMilton Miller1-5/+5
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>
2016-06-17Move rest-dbus to development packageAdriana Kobylak1-0/+1
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>
2016-06-16Add build time dependencies to python for skeletonBrad Bishop1-0/+2
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>
2016-06-15Add virtual workbook / config-in-skeleton classesBrad Bishop1-0/+28
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>
2016-06-14Add OBMC_IMAGE_EXTRA_INSTALL variableBrad Bishop1-2/+4
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>
2016-06-13Support multiple systemd service filesBrad Bishop1-9/+47
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>
2016-04-14Enable obmc-console projectJeremy Kerr1-0/+1
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>
2016-04-02obmc-phosphor-image: temporarily disable obmc-consolePatrick Williams1-1/+0
See openbmc/obmc-console#2 for failure details. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2016-03-24Add obmc-console projectJeremy Kerr1-0/+1
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>
2016-03-04Add inarp to base imageAdriana Kobylak1-0/+1
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.
2016-02-29Don't inherit image-overlay by defaultBrad Bishop2-3/+12
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.
2016-02-29Whitespace fixesBrad Bishop1-15/+15
Indent was only seven spaces. No functional changes.
2016-02-24openbmc: Switch RW FS from ext4 to jffs2Andrew Jeffery1-1/+1
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2016-02-24openbmc: Lift mkfs opts to variables and use OVERRIDES capabilityAndrew Jeffery1-1/+13
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>
2016-02-24openbmc: Generate images with empty NOR sections in the erased stateAndrew Jeffery1-2/+9
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>
2016-02-24oe_mkimage: Use consistent indentationAndrew Jeffery1-3/+3
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>
2016-02-12Recipe update: User management, systemd patch, IPMI net functionsAdriana Kobylak2-0/+7
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
2016-02-04add image-rwfs to flash tarNorman James1-1/+2
2016-02-01Create tarball of update files with correct namesNorman James1-0/+9
Signed-off-by: Norman James <nkskjames@gmail.com>
2016-01-29Create image class image-overlay and move phosphor to use itMilton D. Miller II2-17/+56
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>