summaryrefslogtreecommitdiff
path: root/meta-google/recipes-google/networking/gbmc-bridge.bb
AgeCommit message (Collapse)AuthorFilesLines
2021-12-16meta-google: gbmc-bridge: Fix service permissionsWilliam A. Kennington III1-2/+2
Change-Id: I5fc6db2510b9c27d8d2ce27304e0a5e821015fb3 Signed-off-by: William A. Kennington III <wak@google.com>
2021-12-04meta-google: gbmc-bridge: Implement DHCPWilliam A. Kennington III1-1/+8
This makes it possible for a BMC to acquire a public address via DHCP provisioning. None of the update processes are included yet. Change-Id: I51ca2aa4859bcd2b9e909dd5a0d9e66cfbd648af Signed-off-by: William A. Kennington III <wak@google.com>
2021-08-07meta-google: Cleanup for Yocto override syntax changeWilly Tu1-5/+5
``` 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-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-12meta-google: gbmc-bridge: Fix misconfigured MACWilliam A. Kennington III1-10/+9
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-10meta-google: gbmc-bridge: Set default route sourceWilliam A. Kennington III1-0/+2
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 III1-0/+2
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-07meta-google: gbmc-bridge: Assign stable addresses from RAsWilliam A. Kennington III1-0/+13
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-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 III1-0/+8
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 III1-0/+75
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>