summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes
AgeCommit message (Collapse)AuthorFilesLines
2018-03-13Yocto 2.3Brad Bishop1-10/+0
Move OpenBMC to Yocto 2.3(pyro). Tested: Built and verified Witherspoon and Palmetto images Change-Id: I50744030e771f4850afc2a93a10d3507e76d36bc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Resolves: openbmc/openbmc#2461
2018-03-13Convert obmc-ubi-fs to a distro featureBrad Bishop2-4/+5
As with MRW the use of the UBI image scheme is distro policy. Convert the existing machine feature to a distro feature. Enable the new distro feature on the systems that use it(Witherspoon). Add a distro override and fix-up MF checks to use this override instead for improved readability. Tested: Built a Witherspoon image and validated image Change-Id: I8ab03115bbfc2ecc77cff5c9eb8628903ae88051 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-03-13skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I4be962064668c937fce34b7814378c86a2dc994c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-02Increase default size of UBI read-write volumeAdriana Kobylak1-2/+2
The default size of the UBI read-write volume is currently set to 4MB. There are no plans to store more than one BMC rootfs image on the chip so in a 32MB flash chip, accounting for the current rootfs image size of ~15MB with plans to grow to ~20MB with the addition of redfish and other packages, it is safe to increase the read-write volume size to 6MB since the current size is already almost completely taken up if there are multiple error logs / dumps on the system. In addition, make the size configurable from a recipe so that the size can be changed in a per-system basis. And during code update, check the current size and update it if it's different, this allows systems to be able to be resized to a new size by performing factory reset after a code update that sets the new size. Tested: - Booted on QEMU and verified non-ubi system (romulus) retains the current 4MB read-write volume, and ubi system (witherspoon) has a 6MB volume. - Code updated to an image that has these changes and verified the rwfs_size env variable changes to 6MB, and that a subsequent factory reset rebuilds the volume with size 6MB. Change-Id: I995eb560c1bd87ee95712c731e3d6e55bc0b2735 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2018-03-01phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ied6bfe428fe5bc6a19fdb3adf606cbc18b245b3e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-03-01skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Idcbe38497ff10223faa931853c697c3ae405af0b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-28Remove legacy settings serviceAndrew Geissler1-4/+2
xyz.openbmc_project.Settings has replaced this function Resolves openbmc/openbmc#2339 Change-Id: Ifec6a2fda088c4631e3835d3276a54e09b5d7147 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-27mrw-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib78452fd969b0b2718551a8ff1b6a279624ceb6a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-23image_version: Add missing os-release dependencyBrad Bishop1-1/+3
Any recipe inheriting image_version must have a dependency on os-release to ensure the sysroot is populated before attempting to get the version out of it. Also read the version out of the target sysroot rather than the host sysroot. os-release does not have a native variant. Tested: Built image and verified in witherspoon qemu Change-Id: I8d79280a75577eff48314f0f57c0015e1d6738ef Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-02-23phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: If87a597dd1298289846240c5c566e77ccb1bc770 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-21phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I19a7253fdeabbef63bd7421ea50843e74c8c7f8b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-20skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ibcf5f729e3940aa3ec27e223475e62c24be4e3b0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-17classes: ipmi: symlink: Don't change directoriesBrad Bishop1-2/+1
Avoid a build warning by not changing directories when installing ipmid provider symlinks. Change-Id: I174c91643197f387ffa1bc76d71d6f736444cffd Tested: Built an image and verified symlinks Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-02-17phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I80f424851a43bf5700901a18eba87841843f183a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-17skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Id2311bbcd485fc78b43a8ceb5ce7db497f0e6b6d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-16classes: ipmi: symlink: Add missing EOF newlineBrad Bishop1-1/+1
Change-Id: I1dccd10d802c773a6b07eed0e08934d3b24962eb Tested: No functional changes Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-02-14FRU: Add Entity ID in the host FRU inventory yamlRatan Gupta1-1/+1
This commit also adds the entityID and entityInstance property for BMC FRUS config yaml. These attributes are required to pass it through Get SDR command. Currently we support two types of record format through Get SDR 1) FULL Record. 2) FRU Record. Resolves openbmc/openbmc#2823 Change-Id: Ie7424fbc493dde5070a2c65c74ba83565154b9d4 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
2018-02-13skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I318ee7e035efec53fc8aee1896f4b775a4e450ed Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-06mrw-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ife93c5ebb1b0389ced28d422a4fc6537e083047d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-06phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I7536bfb3927ec6dc93872aeb804c76a4c427fe13 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-02-01systemd: limit bbclass hooks to class-target scopeBrad Bishop2-5/+10
Allow the phosphor systemd and dbus bbclasses to be inherited by recipes using BBCLASSEXTEND (native, etc). No-op in non-target recipe class context. Tested: Built an image and verified dbus and systemd unit files. Change-Id: Ib2f64233f89d05679c568527a074d9236729201f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-02-01skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I8f76a8f5db069b1867e69ee891bee765897255e4 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-31phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I7c11bd9ac69c0da05e33bf662c05048221c4a98d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-30Use variables for MRW XML filename and pathMatt Spinler1-0/+2
Create an mrw-xml bbclass that has variables for the MRW XML filename and path to it. Then, changes all users of the MRW XML to inherit that class and use those variables. The filename will default to ${MACHINE}.xml if it hasn't already been set to something else, such as in a .conf file. This is done so that the file can be something other than ${MACHINE}.xml. Change-Id: Ia7021e5a5d5e7946829e58688250aa64250cb00e Signed-off-by: Matt Spinler <spinler@us.ibm.com>
2018-01-24phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ibf0e3d488601fa5a71feda420a9e8d74f8057e79 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-18Enable perf in obmc-phosphor-debugtoolsJoel Stanley1-1/+1
This enables the userspace 'perf' tool and the corresponding kernel configuration. PERF_EVENTS is enabled on ast2500. It was already enabled on ast2400. TIMER_STATS is enabled. This has low runtime impact when not enabled. It defaults to off. Change-Id: Iac1761aec999679b611e9bf9b51d0fe585d7ac5c Signed-off-by: Joel Stanley <joel@jms.id.au>
2018-01-04phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Icf27f69e338a522e0e4c39ec01d3afeaca51cf77 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-04phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I494277822b6848483dba1c25609c73c89a4db25f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2018-01-03skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Id649a330baeacaed7dd33cde407a697d02cd4cb9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-14skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ia663320b00599b298c599dda58ea1d1d80ae2e73 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-12skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I0ba1edfe94f467733eff4e61ac4c16ca31346ff3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-10phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I62915d266d91e9b43f66786a15b7027f63c90838 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-06phosphor-discovery: Fixes some conditional checkRatan Gupta1-6/+6
Correct the return values from string to boolean of distro feature check for avahi and slp. This commit also correct the check if slp and avahi is not enabled then return Change-Id: I2a19c14fdaf19523702062e6466d636080eeabe6 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
2017-12-05skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Idb7026a2fb1e96e2a2827f04eb40107e22c652a8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-05phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I1cbb82c47a4188bbc3fd77b876c7142839814bff Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-12-01obmc-phosphor-systemd: fix string trim of instance nameRobert Lippert1-1/+1
Python rstrip argument is a set of characters to strip and not a substring. This caused a weird build failure when the instance name happened to include some characters from the trailing part of the service name. Change-Id: Ib3263c709c7ca85a8c9f63c33945215b8443b806 Signed-off-by: Robert Lippert <rlippert@google.com>
2017-11-28phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ib237e0580915b19b951b6cc08bddef75249a3854 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-28Move obmc-pydevtools to tools packageAdriana Kobylak1-0/+1
Create a new development tools package and move the obmc-pydevtools there so they're no longer in the extrasdev development feature package. The reason is that the extrasdev contains features that are desirable to be removed from production systems, such as the rest-dbus. On the other hand the pydevtools are binaries that are useful to have even in production systems, so makes sense to put them in a separate tools category. Resolves openbmc/openbmc#2571 Change-Id: Ia66bf6e83d920818c8c355ec9d01a047583b82c0 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2017-11-27skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I98c18516cea5ae3d59a5572ca10d7dcd84803fe7 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-17phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I7a408520e6b2756fe3f48bc762f960708d1b8903 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-16Calculate the version ID of BMC UBI volumes during build time.Saqib Khan2-20/+46
- When the new ubi layout is flashed onto the BMC, the volumes were named kernel-0 and rofs-0 by default. This tends to be misleading as we can't differentiate between two different BMC versions. - Now the ubi volumes will be named kernel-<versionID> and rofs-<versionID> calculated by getting the hash(SHA-512) of the version and taking the first 8 characters. - The Uboot env needs to be updated to point to the correct kernelname which has now changed from kernel-0 to kernel-<versionID> calculated by getting the HASH(SHA-512) of the version and taking the first 8 characters. Resolves openbmc/openbmc#2323 Change-Id: I258d165b399d1ff59ea86f410006f6d03fe13a2e Signed-off-by: Saqib Khan <khansa@us.ibm.com>
2017-11-15phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I5f2d5add4b0c328e300a08d54b5fc2b567ba00da Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-14obmc-phosphor-image: Add lrzszJoel Stanley1-0/+1
This adds xmodem receive shell tools so we can move files onto or off of the BMC over a serial console (without a network connection). This is helpful when debugging issues with failed network connectivity. Change-Id: Id12a3704c690230cb9111aa2f6f50962527e3987 Signed-off-by: Joel Stanley <joel@jms.id.au>
2017-11-07phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ie76fad285c19272b98d1d8a091d41d14842f1a6b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-01skeleton-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I883e928d03adc989e530174113ca7931a56c56e4 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-11-01phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: Ibe56477bf89e8d2324ba0db33b8bcd13c947ce56 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-26phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I2e436d068e4981734bbcb8c07891fa0bb5e9acb3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-26Enable support for usecase specific bash script invocationMarri Devender Rao1-0/+4
Resolves openbmc/openbmc#2037 Install dreport, dreport.conf, plugins Parse the scripts to fetch config value Create user directories based on config value with softlinks to the plugins Change-Id: If1bdefca362a282132364306b26eecb4b7003390 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
2017-10-26phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I26b17409b2ee94bfc69532d07765fe98a0d2263d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2017-10-25phosphor-networkd-rev.bbclass: bump versionAndrew Geissler1-1/+1
Change-Id: I11b68e2bf6e27a1879276a5ecfc895191b38c5c0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>