summaryrefslogtreecommitdiff
path: root/meta-google
AgeCommit message (Collapse)AuthorFilesLines
2021-05-20google-misc: srcrev bump 4c68ffb8b0..4a0e2e3c10Andrew Geissler1-1/+1
Nancy Yuen (1): Add OWNERS plugin to google-misc. Change-Id: I8edec84a9493bf67adb6969f2397666bc63d34d4 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-05-13meta-google: gbmc-bridge: Fix do_rm_workWilliam A. Kennington III1-2/+1
The workdir will be empty if the package is populated from the sstate, fix the command to work for this case. Change-Id: Ie262a69de067e94e9da32ca8a89d1db1a5ab5bf2 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-13meta-google: gbmc-bridge: Workaround do_rm_workWilliam A. Kennington III1-0/+7
Otherwise when using a posix shell it will fail with: Step #1: | ERROR: Execution of '/workspace/ci_workspace/gbmc/build/tmp/work/armv7a-openbmc-linux-gnueabi/gbmc-bridge/1.0-r1/temp/run.do_rm_work.40349' failed with exit code 1: Step #1: | grep: invalid max count Step #1: | rm: invalid option -- 'b' Step #1: | Try 'rm ./-bmc-gbmcbr.netdev' to remove the file '-bmc-gbmcbr.netdev'. Step #1: | Try 'rm --help' for more information. Step #1: | WARNING: exit code 1 from a shell command. Change-Id: Ie846810b3c5e187d20c18f843ff8e4b0851ed5df Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-13meta-google: gbmc-bridge: Remove bashismWilliam A. Kennington III1-3/+2
Appending strings is a bashism and can't be used in bitbake shell. Change-Id: Ie4f75367cc59000595afc68431ff98dbfc4b16c6 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-13meta-google: gbmc-ncsi-config: Add unreachable bridge routeWilliam A. Kennington III1-0/+4
We don't want traffic being routed back out of the BMC when it is destined for the BMC network. It's nice that unrecognized routes return an obvious unreachable error to the end user. Change-Id: If261faf7b8f2416ee9a802f85db17ed62946625d Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-12meta-google: gbmc-ncsi-nft: More forward restrictionWilliam A. Kennington III2-1/+6
We only want to allow <pfx>::fd... traffic info the machine area network from the outside world. Instead of just blocking internal network addresses from the outside, explicitly look at the prefix. Change-Id: Id0afef7c813aef381e81b8fcfb570778f529f5dc Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-12meta-google: gbmc-bridge: Fix gw source checkWilliam A. Kennington III1-1/+1
The conversion to ip_to_bytes picked the wrong address bytes off by one. This fixes it and verifies that a machine now updates the address. Change-Id: Ifc7bbebc0cf500d51d01d693445aa2533122e9a1 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-12meta-google: gbmc-bridge: Fix misconfigured MACWilliam A. Kennington III3-12/+10
The network addresses derived from the MAC address are supposed to go in the .network file instead of the .netdev file. Change-Id: I9e9dc2c213414ae458392beab32334b89a897267 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-11meta-google: gbmc-bridge: Remove custom ip parsing logicWilliam A. Kennington III2-28/+31
Change-Id: I455ab70094cfdc79b38097a838051f51b3c852da Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-11meta-google: gbmc-bridge: Use networkctl reconfigureWilliam A. Kennington III2-23/+14
The other workarounds to try and restart networkd tend to result in flaky behavior. We get much more consistent and fast reconfigurations if we target the bridge directly. Change-Id: I3222eba4a2d2b71e3893f93643f412e5238ee60e Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-11meta-google: network-sh: Convert to IP bytesWilliam A. Kennington III5-56/+123
Now that we can convert to and from IP bytes, we should use them everywhere to ensure values are parsed correctly. Change-Id: I995091d1eff670db6678b4a2f4a64113e93308f7 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-11meta-google: network-sh: Add ip_bytes_to_strWilliam A. Kennington III2-0/+84
This makes it possible to get a human readable address back from a byte array. Change-Id: Ifcc98bcc95b8d75fe7d1aae1c264cbddf3fc5bd0 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-10meta-google: gbmc-bridge: Look at IP bytes instead of regexWilliam A. Kennington III2-5/+23
Change-Id: Ie3a20df633346692039103edc882e202b7c3309b Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-10meta-google: network-sh: Add ip_to_bytes functionWilliam A. Kennington III2-3/+166
This will be used to compare parts of addresses instead of applying regexes to them. Change-Id: Ide7366cab967e31a74cbb4002bad1046432037e3 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-10meta-google: gbmc-bridge: Set default route sourceWilliam A. Kennington III2-0/+67
This change ensures that ULA addresses don't get used as the source when trying to send packets outside the machine. Change-Id: I46413a2587634a79f0c0fc4051587e39a9fdcf50 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-10meta-google: gbmc-bridge: Recognize public addresses internallyWilliam A. Kennington III2-0/+65
We want to be able to categorize public addresses being used for internal traffic, and allow them to access internal services. Change-Id: I1f4b8eaa329954f330c3052c0c789b8e5e3b4662 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-08sslh: Bump b72baa0..517e4adWilliam A. Kennington III1-1/+1
Mostly bugfixes, but importantly contains a parallel build fix that periodically affects builds. Change-Id: Ib60fb1fbd1427f5e6542c12c1383bdc871af5905 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-07meta-google: gbmc-bridge: Assign stable addresses from RAsWilliam A. Kennington III5-1/+138
We want BMCs to be able to discover their machine prefix and assign a stable IPv6 based on that prefix combined with the MAC of the BMC. Change-Id: I67b8c56f50ff3a970175abcb81b429ceb1258b69 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-07meta-google: gbmc-systemd-config: Enable packet forwardingWilliam A. Kennington III3-13/+28
This allows gBMCs to route packets, needed for routing packets to the management netowrk. Change-Id: I71f59eeb12607aa9c9d64687fb983938d5d69413 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-07meta-google: gbmc-ncsi-config: Add public address to gbmc-bridgeWilliam A. Kennington III2-0/+111
This dynamically detects addresses applied to the NC-SI interface and infers the addreses which should be used explicitly by BMCs. Change-Id: I9036be0a54936aace580746cd1900ee653f43cfd Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-07meta-google: gbmc-ncsi-config: Restrict NCSI input packetsWilliam A. Kennington III3-3/+122
Break down packets by their incoming address and ensure that we don't allow packets to unintended destinations. Right now this is effectively a no-op, but it will be necessary for BMC public addressing. Change-Id: I39c16c3b9cd4c293df42b928674e39677d7834e9 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-07meta-google: gbmc-bridge: Don't hardcode MACWilliam A. Kennington III1-1/+2
We want to eventually replace the link layer address with an address from an EEPROM. This change keeps the hardcoded address that services depend on, but allows for the MAC to be changed. Change-Id: I748fab21561f0f22ec0790487755e29e9aecd1b0 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-07meta-google: gbmc-bridge: Discover ULA addresses at runtimeWilliam A. Kennington III2-0/+75
If the bridge interface is assigned a MAC at runtime then it needs to add the appropriate ULA address for that MAC. Change-Id: Ia109c36320a78bb02ba9b54038ca23b0d3e2c948 Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-07meta-google: gbmc-bridge: Add packageWilliam A. Kennington III11-5/+148
This adds a machine local ethernet network which allows BMCs to communicate with one another. Change-Id: I5e0ace231af02d84f7678b8241b5ec71823e86af Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-29meta-google: gbmc-ip-monitor: Fix missing variableWilliam A. Kennington III1-1/+1
Change-Id: I3cc51f3d5885e983ca6f901c103eec4e64c9943c Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-23meta-google: gbmc-ip-monitor: Add packageWilliam A. Kennington III4-0/+347
Add a daemon that monitors all link / addr / route changes on a system, and runs a set of installed hooks to perform customized behavior when these changes occur. Change-Id: Id2a6b7dc2534ebae1beca7135528a6e1e4eada57 Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-23meta-google: network-sh: Add libraryWilliam A. Kennington III3-0/+213
Provides a utility for working with network type data. Right now this is just for MAC address parsing and conversion to EUI{48,64}. Change-Id: I49946d8147f1c7b10cfe3a9e55b20fc30c083eda Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-23meta-google: test-sh: Add packageWilliam A. Kennington III3-0/+223
Provides a basic facility for unit testing shell scripts. Change-Id: I8b8baa1595ed80e5b8d13654ebdc3ba1d044b0cf Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-17meta-google: gbmc-dev-ssh-key: Add packageWilliam A. Kennington III4-0/+24
We want a key we can freely distribute to anyone who is building gBMC for use with SSH on development images. Change-Id: Iafedbbc6ebe2e62bce966bb368dd53831e29bd00 Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-17meta-google: authorized-keys-comp: Add packageWilliam A. Kennington III4-0/+92
This adds a startup routine that compiles an authorized_keys file from multiple locations in the filesystem, allowing for multiple providers without clashing. Change-Id: Ib26e04af42f29d42410154fdd809aa3a525fc9d5 Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-16meta-google: sslh: Bump de8e572..b72baa0William A. Kennington III1-1/+1
Fixes a crash with the latest openbmc Change-Id: Iacceb48d629cd3dd8e6f7f7a49053407438cfbbc Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-16meta-google: systemd: Remove unused sysinitWilliam A. Kennington III1-0/+3
We don't need sysv compatability so remove it from systemd Change-Id: I4eabf7259d7449a94d9e72a8a372c29e52dc3e5d Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-16meta-google: linux: Remove unused input featuresWilliam A. Kennington III1-0/+4
Change-Id: I1a48488917484c16d070fe9d9afdc9c2e26f25ea Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-09meta-google: add nanopb recipeZhenfei Tai1-0/+24
We want to create a nanopb recipe instead of copying nanopb code into multiple recipes that need it. Signed-off-by: Zhenfei Tai <ztai@google.com> Change-Id: Id03695ccd1ef57f078eefb9e3638bbd802234e58
2021-04-06hardknott: yocto releaseAndrew Geissler1-1/+1
Latest upstream yocto has moved on to the 3.3 hardknott release Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ieae36798d66d21c2c642931f06407d3bb2acf163
2021-03-31meta-google: phosphor-dbus-interfaces-mapper-config: Allow gbmcWilliam A. Kennington III1-0/+2
We want to allow the mapper to discover interfaces and services that are published in the gBMC domain. Change-Id: Id107532d6a1ab52892ad310e516807accd6552f9 Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-30meta-google: recipes-core: dropbear: Import from gBMCWilly Tu2-0/+8
Update recipes-core/dropbear code from gBMC. Google-Bug-Id: 179618554 Upstream: 8ac594bdf054082ca6dbe35c4345759fe4c31669 Signed-off-by: Willy Tu <wltu@google.com> Change-Id: I56886cf316ebc5f77e0f5afdc0bcc970d7cf490e
2021-03-29meta-google: linux: Prune some unused kernel featuresWilliam A. Kennington III1-0/+12
This saves us ~400KB compressed in our current linux kernel images. Change-Id: I9810ef4933abfdccc7f45459a1a5e5f230087f07 Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-25meta-google: gbmc-kcs-config: Add packageWilliam A. Kennington III2-0/+48
Change-Id: I0e68a7520191554680c94d8e3b8bc98f368ac71b Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-25meta-google: google-kcsbridge: Add packageWilliam A. Kennington III1-0/+16
Change-Id: I4507510cdb63c4be710c5674da87d640c633d610 Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-25google-misc: srcrev bump b056df698c..4c68ffb8b0Andrew Geissler1-1/+1
William A. Kennington III (1): kcsbridge: Add alternative daemon Change-Id: I9e022d7b6d447269362652487f0d963ea2df53b4 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-03-25meta-google: google-misc: Split into includeWilliam A. Kennington III4-51/+46
We don't want to generate bump commits for each project in the repo. Instead, provide an include that has common parameters used by all google-misc projects. Change-Id: Ice589c03aa0d38ca5043ee2081f3757568c4e4bb Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-24meta-google: nftables-systemd: Flush at startWilliam A. Kennington III2-1/+2
We don't want errors in loading previous rules to affect the state of the ruleset during restart. Change-Id: Ic122e971670d56022029f1155c1accdf129672d0 Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-24google-misc: srcrev bump 3f43b7eebe..b056df698cAndrew Geissler1-1/+1
Brandon Kim (1): acpi-power-state: Import from gBMC William A. Kennington III (2): meson: Fix build with 0.57.1 metrics-ipmi-blobs: Fix generated source dependency Change-Id: I3234d7d21787e3050b53abcdb62e0f89e0dce78e Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-03-19google-misc: srcrev bump 15fe169d1f..1285115c16Andrew Geissler1-1/+1
William A. Kennington III (1): meson: Fix build with 0.57.1 Change-Id: I6b08157a77b2dbd2ce589a1f9fd4b8287890c92e Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-03-19google-misc: srcrev bump 15fe169d1f..1285115c16Andrew Geissler1-1/+1
William A. Kennington III (1): meson: Fix build with 0.57.1 Change-Id: Ie3cdfdbc7a2e83bed6ab8063de2b12b05327c256 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-03-19recipes-google: Add metrics-ipmi-blobsSui Chen1-0/+28
metrics-ipmi-blobs provides a set of BMC health info through an IPMI blob. Tested: After adding the meta-google layer, the recipe "metrics-ipmi-blobs" shows up in `bitbake-layers show-recipes`. Change-Id: I0239644c16cecdf9a959b646bbab570737d4ee15 Signed-off-by: Sui Chen <suichen@google.com>
2021-03-10meta-google: recipes-bsp: images: Import from gBMCWilly Tu2-0/+55
Initial recipes-bsp/images code from gBMC. Google-Bug-Id: 179618483 Upstream: 8ac594bdf054082ca6dbe35c4345759fe4c31669 Signed-off-by: Willy Tu <wltu@google.com> Change-Id: I914a3ac26eee2b121eeb1b92ea0c5636295c4272
2021-03-10busybox: Add `script` utilityWilliam A. Kennington III1-0/+3
Handy since it allows you to wrap utilities, faking interactive execution and enabling them to properly line buffer output. Change-ID: I4672e431edc143da6f9018212a17d2cd9d8f6579 Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-10busybox: Consolidate rules into a single fileWilliam A. Kennington III5-10/+10
Change-Id: I0fad530d23558737b4217ab604fc31098ac06254 Signed-off-by: William A. Kennington III <wak@google.com>