#
b4edc27a |
| 19-Jul-2022 |
Andrew Geissler <geissonator@yahoo.com> |
utilize "/usr/bin/env perl" in perl scripts
When utilizing /usr/bin/perl, this expands to the full path of your filesystem build. i.e. something like this:
/home/andrewg/Code/openbmc/build/withersp
utilize "/usr/bin/env perl" in perl scripts
When utilizing /usr/bin/perl, this expands to the full path of your filesystem build. i.e. something like this:
/home/andrewg/Code/openbmc/build/witherspoon/tmp/work/x86_64-linux/mrw-perl-tools-native/1.0+gitAUTOINC+65ca8e19c4-r1/recipe-sysroot-native/usr/bin/perl
This now exceeds the allowed size by yocto: "maximum shebang size exceeded, the maximum size is 128."
There are ways to disable this check in yocto, and we probably have a case to argue this upstream, but our use in OpenBMC of perl is pretty limited so the easiest solution is to just move the perl scripts over to using /usr/bin/env. Half the perl scripts in this repo already do this.
Tested: - Verified new yocto now builds this repo
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I1c6dfc49a9a1d5ace0d0b9fdd4fa7a0abdee033e
show more ...
|
#
65ca8e19 |
| 16-Jul-2022 |
Andrew Geissler <geissonator@yahoo.com> |
ensure no space in script type string
New bitbake checks to ensure the #! line does not exceed 180 characters and it requires no space between it and the script type info.
Signed-off-by: Andrew Gei
ensure no space in script type string
New bitbake checks to ensure the #! line does not exceed 180 characters and it requires no space between it and the script type info.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: If52da98c06aced381a6b82cfc0756c1a322f7aec
show more ...
|
#
9eae8443 |
| 03-Jun-2019 |
Matt Spinler <spinler@us.ibm.com> |
gen_openpower_fru: Allow multiple instances Add support for allowing multiple instances of the same MRW type. Before, since the type was deleted out of %targetHash, it wouldn't save
gen_openpower_fru: Allow multiple instances Add support for allowing multiple instances of the same MRW type. Before, since the type was deleted out of %targetHash, it wouldn't save it in the output again. Now it will only skip adding the results to the @targetTypes and @paths arrays if the type is empty, or it is not in %targetHash and also not already in @targetTypes. Tested: Will now see multiple instances: FRUS=PANEL,BMC,VRM,VRM,ETHERNET Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ifca9a492fea1341a6d75ab0955badf8e85604bf6
show more ...
|
#
715c97ea |
| 19-Sep-2019 |
Santosh Puranik <santosh.puranik@in.ibm.com> |
Do not add empty paths to output file This commit fixes a bug in the script where an undefined (blank) path would get added to the output inventory file in case the path for a given
Do not add empty paths to output file This commit fixes a bug in the script where an undefined (blank) path would get added to the output inventory file in case the path for a given FRU is not found in both the MRW and the default path map. Having an empty path would result in a bad inventory environment file that would cause the openpower vpd parser service that relies on this file to fail at runtime. Tested: I ran the script manually against the witherspoon MRW and the openpower layout YAML and verified that the generated inventory file was good. Change-Id: I6443208bd3e9e7705da40c30799f007a386b3612 Signed-off-by: Santosh Puranik <santosh.puranik@in.ibm.com>
show more ...
|
#
6225e93d |
| 07-Feb-2017 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
gen_openpower_fru.pl : Fetch inventory paths In preparation for the openpower-vpd-parser recipe, this script will, from an input openpower vpd-config YAML file, determine which inven
gen_openpower_fru.pl : Fetch inventory paths In preparation for the openpower-vpd-parser recipe, this script will, from an input openpower vpd-config YAML file, determine which inventory objects we're interested in, and will fetch from the MRW pathnames these objects should have. The script will output a file in a format that can serve as an environment file for a systemd service, which in turn will launch the openpower-vpd-parser application with this information. Change-Id: I7c4fa70af002f63bd5501093802c1d41bd503e88 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
show more ...
|