summaryrefslogtreecommitdiff
path: root/meta-google
AgeCommit message (Collapse)AuthorFilesLines
2021-10-11meta-google: Remove ztai from MAINTAINERS listWilly Tu1-1/+0
Change-Id: I0012555a65b0d9f67c62e14a5890a21cdff31ee5 Signed-off-by: Willy Tu <wltu@google.com>
2021-10-03certificate-manager: supply configs from the repoAnton D. Kachalov1-1/+1
This change is a part of the privilege seperation work which is tracked in: https://github.com/openbmc/openbmc/issues/3383 This change should be merged after individual repo change: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-certificate-manager/+/41166 Signed-off-by: Anton D. Kachalov <gmouse@google.com> Change-Id: I72e4842e7aa6de2ae4bcbdbf00953b7a79a0f414
2021-10-02meta-google: os-release: Add dev/prod image typeWilly Tu1-1/+2
Add dev/prod image type to /etc/os-release. Tested: Built with GBMC_CONFIG=dev bitbake obmc-phosphor-image ``` cat /etc/os-release ID=gbmc NAME="gBMC (OpenBMC + Google customizations)" VERSION="gbmc-release" VERSION_ID=gbmc-release-0.5.0.0 PRETTY_NAME="gBMC (OpenBMC + Google customizations) gbmc-release" BUILD_ID="2.11.0-dev" IMAGE_TYPE="dev" ``` Change-Id: I355e6069b08107717fb406b6b603ce4ce5264ff3 Signed-off-by: Willy Tu <wltu@google.com>
2021-10-01meta-google: gbmc-ncsi-config: Fix missing bash rdepWilliam A. Kennington III1-0/+1
The scripts distributed with this recipe depend on bash at runtime, causing sanity check failures without proper specification. Change-Id: I32e4ad135ca94c3f0f707ca7d48f5c3fa29d2441 Signed-off-by: William A. Kennington III <wak@google.com>
2021-10-01google-misc: srcrev bump b163a2c1ba..700edceeedAndrew Geissler1-1/+1
Willy Tu (1): Revert "bios-key: import from gBMC" Change-Id: Ie654c5507bd94633f65fe9f1a3ecac4a1e465d00 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-09-30meta-google: Add google-bios-key bitbake fileWilly Tu3-0/+42
Add the public Google BIOS keys for gBMC Change-Id: Id60b5f2d5bf9f6b7491959ad17c79698ade570ad Signed-off-by: Willy Tu <wltu@google.com>
2021-09-30Revert "Revert "meta-google: Add libcr51sign bitbake file""Willy Tu1-0/+11
This reverts commit f10df3ffeb8d695167c95530ab2c1022e3d02103. https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/47253 is submitted and libcr51sign is ready for use. Change-Id: I646dcf872d495d4baf18b9c4dc6149f576e6761d Signed-off-by: Willy Tu <wltu@google.com>
2021-09-29meta-google: glome: Bump b7084b5c..02f7d272William A. Kennington III1-1/+1
Copybara-Service (1): Merge pull request #96 from l9i:go-presubmit Piotr Lewandowski (3): Print the ouptut of `gofmt -d` (if any) Print the output of `gofmt -d` (if any) Merge branch 'go-presubmit' of github.com:l9i/glome into go-presubmit William A. Kennington III (1): login/login: Remove glib url escap Change-Id: Ief099a8ebec5d78ce256e32dacb5cf90173bcfc9 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-29meta-google: gbmc-ncsi-config: Parse hostnames from RAWilliam A. Kennington III1-0/+10
We need the hostname to be properly configured in order to login with GLOME. This derives the hostname from the FQDN that is passed via the DNS list in the RA messages from the smart NIC. Change-Id: I4e7a414b6b75bfb227df5763917e9e5d09579d7d Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-29meta-google: gbmc-ncsi-config: Derive IP from RAWilliam A. Kennington III4-0/+140
Our end2end DHCP solution is not yet working, but we need a way to derive addresses for a BMC from the smart NIC in front of it. This provides a mechanism for detecting the address from RA beacons the NIC is sending. Change-Id: I0cdc8c192974c0b00257ebe58e911e62636e4c81 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-29meta-google: gbmc-ncsi-config: Add relay support for the bridgeWilliam A. Kennington III9-0/+73
We may have multiple BMCs running on the internal gbmcbr network via USB links to attached trays. These BMCs do not have a direct connection to the network, and require the NCSI BMC to relay all of their traffic (including DHCP) out opf the machine. This patch enables dhcrelay to run on the NCSI interface and proxy all DHCP traffic from the bridge out of the machine. Change-Id: I60f97ae2d64289c7b706b3d0a6c8fb79a931e485 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-27google-misc: srcrev bump d237c6cc59..b163a2c1baAndrew Geissler2-1/+3
Nan Zhou (1): libcr51sign: import from gBMC William A. Kennington III (2): ncsid: Stop targets when daemon stops ncsid: Support parsing unsolicited RA announcements Willy Tu (2): google-misc: libcr51sign: add feature to fetch image regions bios-key: import from gBMC Change-Id: I47cd3bd37ca6eeb647f61fab66994a4e224f982a Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-09-22Revert "meta-google: Add libcr51sign bitbake file"Nan Zhou1-11/+0
This reverts commit 9568db489935842fc31854a649efb7bf681d5650. We will fix libcr51sign and tools that use it first. Change-Id: I97190c0b85bdc040ccce5d9c5f18aca35e6c2be7 Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
2021-09-16gbmc-ncsi-config: Fix nftables rule writingWilliam A. Kennington III1-1/+2
The `pfx` variable was not correctly being initialized Change-Id: Iafc0a2ca8dbfe943a9bc8c1649ae68fb00d267a1 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-16meta-google: host-power-ctrl: Fix gpio errorsWilliam A. Kennington III1-2/+2
The return statements should have been exits. Change-Id: I39a190250656ba676ea2ccbe570b88e3f18e5121 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-16meta-google: Add libcr51sign bitbake fileWilly Tu1-0/+11
Change-Id: Id980b8175dc5621f394771941de065689239fe3f Signed-off-by: Willy Tu <wltu@google.com>
2021-09-12meta-google: gbmc-bridge: Fix nftables rules for local BMC addressWilliam A. Kennington III1-3/+11
We want to use sets instead of separate rules for each address. This also ensures that packets coming from internal sources are matched as internal packets. Change-Id: Iff87b81c48c7491a74af1a2cead4cabcb56d81a0 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-11meta-google: protobuf: Enable LTOWilliam A. Kennington III1-0/+3
We want to reduce the size of our target binaries, and LTO saves us about 300K. Change-Id: Id1fe52b48a16999385251ae927012ff3e494e2f3 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-09meta-google: zstd: Split libraries from binariesWilliam A. Kennington III1-0/+2
This saves ~3MB of uncompressed size. Working on upstreaming this change, but keep it as part of meta-google for now. Change-Id: I261610c1413b514f7090e3be84ca19e243653640 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-09meta-google: google-key: Don't bring in all of gnupgWilliam A. Kennington III1-1/+1
This has a measurable effect on the size of the image, removing nearly 10MB of binaries from the uncompressed size. Change-Id: I4da1cca0ac036ef3eded48e5c64ab4ca12196264 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-08meta-google: image_type_hothJohn Edward Broadbent1-0/+150
This is Google's internal method for dealing with hoth and image sizes. No changes are expected for any non-Google projects. Change-Id: I2b66763e0fdc1cd019c2d774134290788228982b Signed-off-by: John Edward Broadbent <jebr@google.com>
2021-08-24treewide: remove gategarth from layer-supportPatrick Williams1-1/+1
We've typically kept these LAYERSERIES_COMPAT to 2 releases: the current and the upcoming. Remove 'gatesgarth' is it is now 2 releases back. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5e812a94fed1738898af75c0fdee81996a5bbf20
2021-08-19meta-google: Fix inplace-gbmc-version.shVivekanand Veeracholan1-1/+1
The script has a "#!/bin/bash" at the end of its command causing failure. Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I9b9e8fe9ee8a4374637e8fa95c0fa17b44e7ebb9
2021-08-19meta-google: Fix inplace-gbmc-verify.shVivekanand Veeracholan1-1/+1
The script has a "#!/bin/bash" at the end of mv command causing failure. Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I328a1ef61d0ad60f0d0b36cd36d081ba88ccb359
2021-08-18gpio-ctrl: update yocto override syntaxMichael Shen1-1/+1
Signed-off-by: Michael Shen <gpgpgp@google.com> Change-Id: I716b873ad2a3a7cc4437f90638081bba12bb280c
2021-08-18meta-google: Disable u-boot shell for Google prod buildsVivekanand Veeracholan1-0/+3
The DISTRO_FEATURE option for this is merged, https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/45523 Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I70ba330f1f39aa785a31b63d1640a4c4b3c3eba8
2021-08-18libwatchdog: update yocto override syntaxZhenfei Tai1-1/+1
Signed-off-by: Zhenfei Tai <ztai@google.com> Change-Id: I918deb41b27e84096a3974d48cb4aa64df35bf20
2021-08-18gpio-host-pwr: update yocto override syntaxZhenfei Tai1-2/+2
Signed-off-by: Zhenfei Tai <ztai@google.com> Change-Id: I4dcf8756ffd3b80d1db69e77f07df57e585b1b66
2021-08-16meta-google: Add GBMC_CONFIG variableVivekanand Veeracholan1-0/+4
GBMC_CONFIG variable controls dev/prod configuration for the builds. Possible values: dev, prod This variable is defaulted to "dev" through weak assignment. Can be explicitly set through local.conf file or in build command. To set it in build command, additional step of including this variable to the "BB_ENV_EXTRAWHITE" environment variable is needed. https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#passing-information-into-the-build-task-environment Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I46c34d47c958a96ce00e2c89a2bc771a483a83ab
2021-08-12meta-google: Add ztai,nanzhou to owners and maintainersZhenfei Tai2-0/+4
Signed-off-by: Zhenfei Tai <ztai@google.com> Change-Id: Iee9923313db08862a18eacb176d4be6c73373aed
2021-08-12meta-google: Add wltu as MaintainerWilly Tu2-0/+2
Change-Id: Ia2ff2feefd083e64756f3d135083aec0b97eb07e Signed-off-by: Willy Tu <wltu@google.com>
2021-08-11meta-google: Delete lines removing rsyslogVivekanand Veeracholan1-6/+0
rsyslog package is being removed for the entire gbmc distro. But bmcweb and dbus-sdr mode of phosphor-ipmi-host needs rsyslog package. Deleting these lines from the packagegroup-obmc-apps.bbappend. The removal of this package can be controlled at the machine level by adding the following line to machine conf. IMAGE_FEATURES_remove = "obmc-remote-logging-mgmt" Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I226d69adc08c886293bed273ac6ea023f58a6dd4
2021-08-11meta-google: minor fixup for override syntaxPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8bf8cb4f7e370d8ab0ba40fb325c9df28733f324
2021-08-10meta-google: gpio-ctrl: upstream gpio-ctrl recipeMichael Shen2-0/+264
Add license to bb file and the copyright to shell script. Signed-off-by: Michael Shen <gpgpgp@google.com> Change-Id: I8b546ebfb302213c5a115af7220102fa51f2419b
2021-08-10meta-google: host-power-ctrl: Import libwatchdog from gBMCTom Tung2-0/+49
Upstream package for libwatchdog. Change-Id: I9ef9243ae8e56a4a92be31c9229f1b38c00f662d Signed-off-by: Tom Tung <shes050117@gmail.com>
2021-08-10meta-google: host-power-ctrl: Import gpio-host-pwr from gBMCTom Tung18-0/+435
Upstream common package for gpio-host-pwr. Change-Id: I08550d46d2b062f6b793cb5417d26231c7e4ca20 Signed-off-by: Tom Tung <shes050117@gmail.com>
2021-08-09meta-google: layer.conf: Revert 45725 and add honister as Yocto releaseWilly Tu1-3/+3
Reverting the changes in https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/45725 and adding `honister` to LAYERSERIES_COMPAT for the next Yocto release. Change-Id: I32c138127dc3508d6925c990643b9efce2bda0b6 Signed-off-by: Willy Tu <wltu@google.com>
2021-08-07meta-google: layer.conf: Cleanup for Yocto override syntax changeWilly Tu1-3/+3
Update `_google-layer` to `:google-layer`. Change-Id: I3443c265aa3ff3bb711f65c016942bfd53ecf153 Signed-off-by: Willy Tu <wltu@google.com>
2021-08-07meta-google: packagegroups: Add obmc-apps bbappendZhenfei Tai1-0/+17
Signed-off-by: Zhenfei Tai <ztai@google.com> Change-Id: I10ca13b80eaa9259a72c1d1957bebe2fb2eb2978
2021-08-07meta-google: Add glome serial console login recipeJie Yang1-0/+26
Signed-off-by: Jie Yang <jjy@google.com> Change-Id: I98f40cbbb412028330201d174e9624410529d1f6
2021-08-07meta-google: Cleanup for Yocto override syntax changeWilly Tu42-147/+147
``` convert-overrides.py meta-google git grep "_[a-z0-9_/-]*[ :]" -- meta-google | grep ".bb" git grep -l _gbmc -- meta-google | grep ".bb" \ | xargs sed -i 's/_gbmc/:gbmc/' git grep -l _prod -- meta-google | grep ".bb" \ | xargs sed -i 's/_prod/:prod/' git grep -l _dev -- meta-google | grep ".bb" \ | xargs sed -i 's/_dev/:dev/' git grep -l _hoth -- meta-google | grep ".bb" \ | xargs sed -i 's/_hoth/:hoth/' git grep -l _bandaid -- meta-google | grep ".bb" \ | xargs sed -i 's/_bandaid/:bandaid/' ``` Some small fix includes ``` platforms_gbmc_bringup platforms_gbmc_secure ``` Tested: ``` $ git grep "_[a-z0-9_/-]*[ :]" -- meta-google | grep ".bb" meta-google/recipes-connectivity/avahi/avahi_%.bbappend:do_install:append:gbmc() { meta-google/recipes-core/dropbear/dropbear_%.bbappend:do_install:append:gbmc:dev() { meta-google/recipes-core/dropbear/dropbear_%.bbappend: echo ' chain gbmc_br_pub_input {' >>"$rules" meta-google/recipes-extended/libconfig/conf2struct-native_git.bb: oe_runmake checker meta-google/recipes-extended/libconfig/conf2struct-native_git.bb: oe_runmake install meta-google/recipes-extended/networking/mstpd_git.bb:do_install:append() { meta-google/recipes-extended/networking/sslh_git.bb: oe_runmake distclean meta-google/recipes-extended/networking/sslh_git.bb: oe_runmake sslh-conf.h meta-google/recipes-extended/networking/sslh_git.bb: oe_runmake install meta-google/recipes-google/ipmi/ipmi-fru-sh.bb:do_install:append() { meta-google/recipes-google/ncsi/gbmc-ncsi-config.bb:do_install:append() { meta-google/recipes-google/networking/gbmc-bridge.bb:do_rm_work:prepend() { meta-google/recipes-google/networking/gbmc-bridge.bb: # HACK: Work around broken do_rm_work not properly calling rm with `--` meta-google/recipes-google/networking/gbmc-ip-monitor.bb:do_install:append() { meta-google/recipes-google/networking/gbmc-iperf3.bb:do_install:append:dev() { meta-google/recipes-google/networking/gbmc-iperf3.bb: echo ' chain gbmc_br_pub_input {' >>"$rules" meta-google/recipes-google/networking/gbmc-mac-config.bb:do_install:append() { meta-google/recipes-google/networking/network-sh.bb:do_install:append() { meta-google/recipes-google/ssh/authorized-keys-comp.bb:SUMMARY = "Compiles a set of authorized_keys files into a single file" meta-google/recipes-google/ssh/authorized-keys-comp.bb:do_install:append() { meta-google/recipes-google/systemd/gbmc-systemd-config.bb:do_install:append:dev() { meta-google/recipes-google/test/test-sh.bb:do_install:append() { meta-google/recipes-phosphor/flash/inplace-gbmc-update.bb:do_install:prepend:dev() { meta-google/recipes-phosphor/host/phosphor-host-postd_%.bbappend:do_install:append:gbmc:dev() { meta-google/recipes-phosphor/initrdscripts/obmc-phosphor-initfs.bbappend:do_install:append:gbmc:dev() { meta-google/recipes-phosphor/initrdscripts/obmc-phosphor-initfs.bbappend:do_install:append:gbmc:prod() { meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend:do_install:append:gbmc() { meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend: overlapping="$(jq '."${GBMCBR_IPMI_CHANNEL}" | .is_valid and .name != "gbmcbr"' $chjson)" ``` Change-Id: I9d610c664bd44e8bd81fb8f7e76249a0b43b9ffd Signed-off-by: Willy Tu <wltu@google.com>
2021-08-07meta-google: sslh: Remove ecosrv from the buildWilliam A. Kennington III1-0/+4
This is not used in the installed output and is breaking the build non-deterministically. Change-Id: I3f7193e9f0aac5e5cdcd45d4c736c3d31bb2858b Signed-off-by: William A. Kennington III <wak@google.com>
2021-08-06meta-google: sslh: Ensure that autogenerated files aren't staleWilliam A. Kennington III2-6/+9
These files sometimes get checked into the repo and we don't want non-determinism around their generation. Ensure they are cleaned up and regenerated for every build since that is very fast. Change-Id: If20c79f8308c117a20983c8cb54c3420d872d64b Signed-off-by: William A. Kennington III <wak@google.com>
2021-08-06sslh: Bump de0ec95..63f9c4aWilliam A. Kennington III1-2/+2
Uptream moved from PCRE to PCRE2 Change-Id: I62434762a7e0485f4fe49ad6f181290cf6d34844 Signed-off-by: William A. Kennington III <wak@google.com>
2021-08-06conf2struct: Bump 06ddd92..6bc9eedWilliam A. Kennington III1-1/+1
Change-Id: Ia4843efa02ed9f3f7587580e4cb83711054637cb Signed-off-by: William A. Kennington III <wak@google.com>
2021-08-05meta-google: Add google-usb-network recipeMaksym Sloyko5-0/+559
Add recipe for bringing up USB ECM network devices. The recipe generates * network configuration file for the interface; * systemd service that starts(stops) the USB Gadget The ECM gadget, as well as the network interface are expected to be fully configured in the bbappend file. Signed-off-by: Maksym Sloyko <maxims@google.com> Change-Id: Ibb57584ce2bfd838e650eae7a4d3935c9580e502
2021-08-02meta-google: images: Add inplace-gbmc-updateBrandon Kim2-0/+3
For gbmc override, add inplace-gbmc-update and set it as the PREFERRED_PROVIDER for virtual/bmc-update. Google-Bug-Id: 179618452 Google-Bug-Id: 179618500 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: If8b7a3640b66fd323ee5c1a98619a09463933898
2021-08-02meta-google: images: Add dummy-gbmc-updateBrandon Kim1-0/+3
For gbmc override, add dummy-gbmc-update Google-Bug-Id: 179618452 Google-Bug-Id: 179618500 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I09925bb262f7a535ff569689a37640a028a09137
2021-08-02meta-google: images: Add utilities to gbmc overrideBrandon Kim1-0/+6
Utilities such as ipmitool, iotools, lrzsz should be added to gbmc. Google-Bug-Id: 179618452 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Id092157e8868648d1a97ef90928dac2cfa1307ae
2021-08-02meta-google: flash: Import inplace-gbmc-updateBrandon Kim6-0/+165
Google BMC inplace update script and bitbake recipe. Google-Bug-Id: 179618162 Upstream: 22e2c3dd5f610777dee173a09d8e82dc2509a975 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ia1beded107382dacb9f2f7e3cb9bbd86ae99d8c1