summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes
AgeCommit message (Collapse)AuthorFilesLines
2018-09-28phosphor-networkd: srcrev bump 1a054aeab1..548e9f13d2Andrew Geissler1-1/+1
William A. Kennington III (1): configure: Use c++17 (From meta-phosphor rev: 0ac264cf485b4dc1a52d477f5f53dac693b38106) Change-Id: I6e8eaa2557e1c423c2f5260b4064ecb67e9efd83 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-27skeleton: srcrev bump 52efa6594b..7e48038afcAndrew Geissler1-1/+1
Adriana Kobylak (1): pytools: Remove dependency to obmc.system (From meta-phosphor rev: ca5a3c5bd3eb088e0e779e47fe07c39095c920fd) Change-Id: I24d0a75cc06017d2413515716face3672677be64 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-18Move screen package to debug tarballAndrew Geissler1-1/+0
This was used a long while back for a console but it's now only used for occasional debug. Tested: Verified QEMU booted to ready state and screen tool not in image. Verfied it is now in debug tarball. (From meta-phosphor rev: 773ad6892bcfc42fa9902af5e6f97e02a4993310) Change-Id: Ib1b9bae89fe0253fdc2ea173f6b0c0842d40d005 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-17phosphor-networkd: srcrev bump ce26282763..1a054aeab1Andrew Geissler1-1/+1
Gunnar Mills (1): clang-format: Update to match docs repo Ratan K Gupta (1): Fix formatting issues (From meta-phosphor rev: fe2f61fc119af0a27f3600aab22e6b371ab0271a) Change-Id: I26f662ed92aa65cb91334e25e08489b6c68e086e Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-12skeleton: srcrev bump d7a8ba5b58..52efa6594bAndrew Geissler1-1/+1
Adriana Kobylak (3): configs: Remove PowerSupplyRedundancySensor configs: Remove PowerSupplyDeratingSensor pysensormgr: Remove sensor manager (From meta-phosphor rev: 9a7e9c247f1a154116025769e584cb051e32ec9d) Change-Id: Ib03af54678bde47398f91ea331a5dd901a8abeb9 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-06phosphor-networkd: srcrev bump 189d44eddd..ce26282763Andrew Geissler1-1/+1
Andrew Geissler (1): Add -flto to CXXFLAGS Gunnar Mills (3): Throw InvalidArgument on bad Default Gateway Correct spacing Throw InternalFailure in catch (From meta-phosphor rev: e05943290acb730339e8a8e1229466f02d23cc33) Change-Id: Ib19c2b14004b80180fc151890c819a12420a0f55 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-31phosphor-networkd: srcrev bump ad21fc2a86..189d44edddAndrew Geissler1-1/+1
Patrick Venture (1): reorder headers (From meta-phosphor rev: c37be581778d36913e5398928e91dcc64214f791) Change-Id: I6d8819481f422bbba531709bc96148a94374f58f Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-31skeleton: srcrev bump 5da4f4fc17..d7a8ba5b58Brad Bishop1-1/+1
Adriana Kobylak (5): fan_control: Move to using xyz.openbmc_project.Sensors configs: Remove BootProgressSensor configs: Remove the OperatingSystemStatus sensor configs: Remove BootCountSensor configs: Remove TurboAllowedSensor Matt Spinler (16): Add function to load in the GPIO data from JSON. Add documentation on GPIO JSON Use cJSON to read the GPIO configuration Use cJSON to get the GPIO definitions Fill in function to convert GPIO pin to a number Fill in the function that finds the GPIO base Remove host control GPIOs from GpioConfigs Call gpio_inits_done() from GPIO consumers Remove unnecessary args from GPIO functions Point obmcutil chassiskill code at the GPIO JSON Remove the GPIOs from Witherspoon.py Remove the GPIOs from Zaius.py Remove the GPIOs from Lanyang.py Remove the GPIOs from Palmetto.py Remove the GPIOs from Romulus.py Remove the GPIOs from S2600wf.py (From meta-phosphor rev: a3c2e523e1cd83b088cb70ccd6d3fdc697785c1f) Change-Id: I847dfae765dfea67738bc93bd589621ab9249849 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-28phosphor-software-manager: Add ACTIVE_BMC_MAX_ALLOWED configLei YU1-0/+2
For static flash layout, configure ACTIVE_BMC_MAX_ALLOWED to 1, because it has only one active BMC image; For ubi-fs, configure ACTIVE_BMC_MAX_ALLOWED to 2, because ubi-fs assumes there are two BMC images by default. Resolves openbmc/phosphor-bmc-code-mgmt#2 Tested: Verify that ACTIVE_BMC_MAX_ALLOWED is set to 1 for Romulus build, and set to 2 for Witherspoon build. (From meta-phosphor rev: bf3edf1ce09f19836c38c2dd43ab4e50664fc46e) Change-Id: I60e49c14bda25547fde9a2308470ed164ebbd249 Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-28phosphor-software-manager: Add MEDIA_DIR configLei YU1-0/+10
Configure MEDIA_DIR to /run/media for static flash layout; Configure MEDIA_DIR to /media which is default for ubi-fs. Resolves openbmc/phosphor-bmc-code-mgmt#3 Tested: Verify that the MEDIA_DIR is set to /run/media for Romulus build, and set to /media for Witherspoon build. (From meta-phosphor rev: f43eb6ee89433e4898cbdb1532963f038419c003) Change-Id: If96c2ee135d314bd6de0cd745c6a871b75183fe1 Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-28Make obmc-flash-bmc-setenv common for static and ubiLei YU1-6/+0
Static flash layout will use obmc-flash-bmc-setenv service to set factory-reset env in u-boot, so make it common for both static and ubi flash layout. Tested: Build the image and verify the service and the obmc-flash-bmc script exist in both static and ubi builds. (From meta-phosphor rev: b2c944f13b0f891a7f569f3a9608e3c0de27a462) Change-Id: Ia067cebfe35a9d2d7d2af8b4d1bd4cb5717372ae Signed-off-by: Lei YU <mine260309@gmail.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-16Use ColdFire FSI interface on Palmetto (P8)Joel Stanley1-1/+1
Moves Palmetto to use the kernel API, and the ColdFire master driver. This change bumps the kernel (with device tree changes) and the skeleton repository for a corresponding op-hostctl (host_control.exe) change. Palmetto is the only system in the tree using this code. Any out of tree systems (such as other P8s) must switch to using the kernel interface as well. Skeleton changes: Joel Stanley (1): hostctl: Move to kernel FSI interface Linux changes: Benjamin Herrenschmidt (2): ARM: dts: aspeed: Add Power8 CFAM description for use by Palmetto ARM: dts: aspeed: Palmetto system can use coprocessor for FSI Change-Id: I43aada22c9d7b21dc24bd5aae3c4dcb77bdaaa8f Signed-off-by: Joel Stanley <joel@jms.id.au>
2018-08-13phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I5a9f2d8a7fdc37fe65d9bd3408162fb5f88db372 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-07-27recipes-phoshor: fans: add phosphor-pid-controlPatrick Venture1-0/+2
Initial phosphor-pid-control recipe. This installs the swampd daemon. It is expected that each platform will provide their own start-up service at present because of current dependencies on dbus. Change-Id: I5ea4b31a99580b42f33488878cc1ec97dd94e582 Signed-off-by: Patrick Venture <venture@google.com>
2018-07-25Check size of the firmware image partsAlexander Filippov1-13/+43
Prevent building unbootable firmware images. Resolves: openbmc/openbmc#3314 Tested: I checked builds for `palmetto` and `romulus`. To reproduce the problem I appended a big file to initramfs by modify `meta-phosphor/common/recipes-phosphor/initfs/obmc-phosphor-initfs.bb`. The building process failed with message about too large initramfs image. Change-Id: I0176e9c47a9cb26ce8ba588794e681b6426d567d Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
2018-07-24Add shadow package to the rootfsTom Joseph1-0/+4
The binaries of the shadow package like useradd, groupadd is needed for the user management functionality. Change-Id: Idfe506793ac8f452ad4de5589f0de00efaf4ce3b Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
2018-07-17image_type_phosphor: refactor signatures generationLei YU1-12/+12
There are duplicated code about generating signatures. Combine the duplicated code into a bash function so the code is cleaner and easier to read. Tested: Generated tarball contains the expected files. Change-Id: I4144633f36291329dfc4008bb73482fb5a0d43c1 Signed-off-by: Lei YU <mine260309@gmail.com>
2018-07-17phosphor-software-manager: ubifs_layout package configLei YU1-0/+2
Add ubifs_layout package config and pass --enable-ubifs_layout configuration option when ubi-fs distro feature is enabled. Tested: Verify --enable-ubifs_layout is passed to phosphor-software-manager's config for Witherspoon; And it is not passed for Romulus. Change-Id: I6daa0c565d2c2be980b6292e62654c0a86a69bbc Signed-off-by: Lei YU <mine260309@gmail.com>
2018-07-16Add manifest and signature for fixed flash layoutLei YU1-4/+28
In generated fixed flash layout tarball, add manifest and signature which can be used for code update by phosphor-software-manager. Tested: Verify the generated static tar contains image(s), manifest, public key and their signatures. Verify that all.tar can be used to do code update by both legacy method (org.openbmc.control.BmcFlash.service) and phosphor-software-manager. Change-Id: Ib6880c8a6d456cce6b0fd47116960d1d448d5d50 Signed-off-by: Lei YU <mine260309@gmail.com>
2018-07-16phosphor-software-manager: Create new UBI bbclassAdriana Kobylak1-0/+49
Remove from the base phosphor-software-manager recipe everything that is conditional in the ubi-fs distro feature and put it in its own class. This allows for the base recipe to be cleaner and for future specific packages to be added conditionally. Tested: Built witherspoon and romulus and verified only witherspoon contained the UBI-specific files. Booted a witherspoon and a romulus qemu. Change-Id: I2a783abc6152aadcf212a35f0060409f8dac2241 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2018-06-28phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib1abd7f69a8d95bf3ec590e8d55df47eb36d6c65 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-06-05skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: If66c256832291777542563ebe960fb59ef62be3c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-30phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib7a8b84c0d0e1d7a6cb04ab13b9fad5ad036d52e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-30phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I2de4eb8be9e800031baa5c811ddf0aeef87bcd5e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-24phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib9e1e533d0500170a3d99df47826ec8eaece8461 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-05-22image_types_phosphor: Add UBOOT_SUFFIX defaultBrad Bishop1-0/+2
Do not rely on the base configuration to set this. Change-Id: I537f08a1834fb2d2a5fd2f73ca73cfc0566464cb Tested: Built a witherspoon image Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-05-15phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ibfa2b63c28c44e554ddc442f9da5eddf93e03c19 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-16mrw-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Iaa61c468bc5deab50c2161e8608c8e6f8525d561 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-11skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ie97d6c5610eddc15baffc2404e5944c6d53b9777 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-10phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I8d78638cda396a75023d08b5b77d8b1d0810638e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-10skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I53153c4efca38ae4931196d1da9897b555d542f0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-06phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Iab5aab58848979c304378dd8737e6b3a914cf704 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-06skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I4eeee774c5cb495fafe7ada2ba61f69cb407b042 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-04phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I0beb80e564dc3b280ac6d10a5e983055e0b5523b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-04Remove ipmi distro feature, virtualBrad Bishop1-1/+6
We don't need a distro feature for net IPMI at this point, so simplify things a bit. Additionally, remove the net-ipmi virtual since we don't have any alternative implementations today and it just adds unnecessary complexity. Tested: Built a witherspoon image and validated manifest Change-Id: I2784f13b3e8897e855ac128422081ec3ee207bf1 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-04-04logging: virtual refactoringBrad Bishop1-1/+1
Remove the phosphor-logging virtuals. They were unused. Add a logging packagegroup so other layers can add additional logging applications predicated on the logging distro feature being enabled. Change-Id: Ic82843cb2b1229df55005bad93576c14f468073b Tested: Built witherspoon, palmetto and qemu images Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-04-03phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I8366fab3ff92e3ad8a42eaf251929c9cc0978978 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-04-03skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I3bc4ba841168bed8cee3cda19a8113f9326e9b99 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-30skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib7726a5249f0d219b888d50ac42b0fa7b40d3c5c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-30Add image signing framework and open keysEddie James1-1/+42
In order to secure the BMC, we need to sign all the images and include a public key in the package with which to verify future update images. This commit adds a framework to sign the image files with an open private key and generates a corresponding public key added to the image. This isn't secure by itself (since the private key is available), but additional changes can easily provide their own private key, creating a secure BMC. To use a secure private key: export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SIGNING_KEY" SIGNING_KEY=/path/to/secure/key bitbake obmc-phosphor-image Resolves openbmc/openbmc#2835 Resolves openbmc/openbmc#2836 Resolves openbmc/openbmc#2837 Change-Id: I28919b7de54e3a32e5efcbb4522fb39731e68384 Signed-off-by: Eddie James <eajames@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-30image_types_phosphor: drop overlayBrad Bishop1-3/+2
The overlay image type doesn't have any code behind it and thus selecting it in IMAGE_FSTYPES would result in unexpected behavior. An overlay image type still exists but it was renamed to mtd-static in an earlier refactor, and this cleanup was omitted. Tested: Built witherspoon and palmetto images Change-Id: I7eb41afcf25ae2d251bf671dd0e5a18e1064f7c4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-30image_types_phosphor: split make_tar_of_imagesBrad Bishop1-7/+13
Move image symlink creation for phosphor-bmc-code-mgmt out of make_tar_of_images into its own function, so we can run additional code in between symlink creation and tar file creation. Tested: Built witherspoon and palmetto images Change-Id: I3025db6bb788d7c2bcf5c2a400af647c7c957164 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-29Revert "meta-phosphor: disable 'uninative' for RHEL6 support"Brad Bishop1-4/+0
Drop support for RHEL6 which has been unsupported by Poky since 2.1. This reverts commit c83cf1ce570d4771b1e42ded308bf4110e70408b. Tested: Built a witherspoon image Change-Id: Idd8dda940c72a69a7a228733c34018f906ec9b8f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-28phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I730378193b83becaa03dcc9484638d716b12a1fc Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-23mrw-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I1fa024b3d209d6cc55d6fc1cb70c8aa32a8fc9d1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-23Clean up stale obmc-phosphor-utils referencesBrad Bishop2-0/+3
There were a number of places that inherited this class but did not use it. A number of classes that did use it did not inherit it. This was possible because the class was pulled in by the distro configuration but that has been removed here as well. Tested: Built and verified a witherspoon image Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I73511cdcc609875b4fe016967c1b84c5200fb703
2018-03-23phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Iab3a24bc5104e8d6ec32eed8b61151c765d75cc0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-15Make host-check a part of host state functionAndrew Geissler1-3/+0
In the previous review it was noted that it didn't make much sense for host-check to be it's own provided function in OpenBMC. It's more of a recommended piece of the base host state function. Change-Id: I024472e96ea00f411e8348e0221c210f84700019 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-15mrw-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I1730c97774addf56d7c3928d8c814b06644f2c7f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-15phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ibc37bf5129324cee1e32300d1691a4a2c2c71dca Signed-off-by: Andrew Geissler <geissonator@yahoo.com>