summaryrefslogtreecommitdiff
path: root/meta-qualcomm/meta-centriq2400-rep
AgeCommit message (Collapse)AuthorFilesLines
2021-09-16bitbake: Use IPK packaging for rootfs assemblyAndrew Jeffery1-1/+1
bitbake offers a choice of DEB, RPM or IPK packaging. To a degree the choice is functionally arbitrary for image generation but control over the package format becomes important if we want to: 1. Include runtime package management functionality in the firmware image 2. Mess about with the packages on the build system With respect to 1 the IPK format and opkg (an ipk package manager) are designed for embedded systems[1] - by contrast to RPMs have heavier dependencies and a greater impact on the size and complexity of the firmware image. Regarding 2, the embedded nature and the need for opkg to work without much fuss leads to a lower configuration barrier by comparison to RPMs. With ipk it becomes possible to reuse the packages built during image preparation for core analysis without needing to generate an SDK: ``` $ export LD_LIBRARY_PATH=./tmp/work/x86_64-linux/opkg-native/*/recipe-sysroot-native/usr/lib $ MY_DEBUG_ROOT=tmp/rootfs-debug $ ./tmp/sysroots-components/x86_64/opkg-native/usr/bin/opkg \ -f ./tmp/work/p10bmc-openbmc-linux-gnueabi/obmc-phosphor-image/*/opkg.conf \ -o $MY_DEBUG_ROOT \ update $ fakeroot ./tmp/sysroots-components/x86_64/opkg-native/usr/bin/opkg \ -f ./tmp/work/p10bmc-openbmc-linux-gnueabi/obmc-phosphor-image/1.0-r0/opkg.conf \ -o $MY_DEBUG_ROOT \ install dbus-sensors dbus-sensors-dbg $ gdb-multiarch (gdb) set solib-absolute-prefix .../tmp/rootfs-debug (gdb) add-auto-load-safe-path .../tmp/rootfs-debug (gdb) file tmp/rootfs-debug/usr/bin/nvmesensor (gdb) core-file obmcdump_17_9597/core.nvmesensor.0.aae91b519d0e4e0e8bbe746e3f6cd25f.2779.9594000000 Core was generated by `/usr/bin/nvmesensor'. Program terminated with signal SIGABRT, Aborted. pthread_kill.c:45 45 pthread_kill.c: No such file or directory. (gdb) bt pthread_kill.c:45 ../sysdeps/posix/raise.c:26 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 "xyz.openbmc_project.NVMeSensor", this=0x488f04) at /usr/include/sdbusplus/bus.hpp:234 ../../../../../../workspace/sources/dbus-sensors/src/NVMeSensorMain.cpp:159 (gdb) ``` This approach documented in the Poky Reference Manual: https://www.yoctoproject.org/docs/1.0/poky-ref-manual/poky-ref-manual.html#platdev-gdb-remotedebug-launch-gdb-inferiorbins Switch all machines to IPK to align the debugging experience with upstream's documentation and to facilitate efficient use of packaged software at runtime. [1] https://openwrt.org/docs/guide-user/additional-software/opkg Change-Id: I8ef526add2d7a6790de1b3eb3fb85cd39b864f23 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams2-3/+3
Upstream bbclasses changed to typically use the `:${PN}` override syntax, including the SYSTEMD_ variables. Change our systemd.bbclass to do the same for consistency and perform a tree-wide variable replacement. Spot checked by building bletchley and witherspoon and checking some of the SYSTEMD_LINK directives on installed packages under qemu. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20a9dd809bff8af8759488734f80486c7228c6eb
2021-06-07treewide: Remove obsolete image-mklibs classWilliam A. Kennington III1-1/+1
This is apparently not actually working anymore and is removed in the next poky update. Change-Id: Ia1c6a258d124a4a30a14fc42e8e0bba95e64faeb Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-22openbmc: add meta-security layerAnton D. Kachalov1-0/+2
This layer provides libseccomp. Signed-off-by: Anton D. Kachalov <gmouse@google.com> Change-Id: I84513d56f2ed75fab49043196b98ef8b858e394f
2019-09-18meta-qualcomm: Remove references to QUALCOMMBASEBrad Bishop5-5/+5
QUALCOMMBASE is only used for pointing at licenses...point at the licenses in oe-core in meta/files/common-licenses instead. to match the defacto convention used in other oe layers like meta-openembedded. (From meta-qualcomm rev: b6305a99ca1f9c5f5ba88f1aeaf3e01a61c2f3fa) Change-Id: Ia1a8e95f4a09743538f427055294fd84dd3169c4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-06meta-qualcomm: centriq2400-rep: move all services to multi-user.targetPatrick Venture1-1/+1
Hard-code multi-user.target instead of SYSTEMD_DEFAULT_TARGET. (From meta-qualcomm rev: 2e9af8db4508967629aed1d039071ae4062c442e) Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I4f65d5f0829d5561a1a524be17a37c23df0fc11c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-03-26meta-qualcomm: centriq2400-rep: Update I2C hwmon paths for the 5.0 kernelPatrick Venture24-22/+22
In the 5.0 Linux kernel, an I2C device path segment changed: i2c@1e78a000 -> bus@1e78a000 (From meta-qualcomm rev: a820d5f8b12deabcabfe88e70270ea8da58d2f39) Tested: Verified paths visually, but not tested on hardware. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I2ce0bb3533f9aee6ea1687a39bde070b05d7c349 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-11-08meta-qualcomm: master refresh 2d5d845e7d..7272549020Brad Bishop5-5/+10
Update meta-qualcomm to master HEAD. Patrick Venture (6): meta-qualcomm: add QUALCOMMBASE meta-qualcomm: centriq2400-rep: ir38163-workaround: set LICENSE field meta-qualcomm: centriq2400-rep: console-client: set LICENSE field meta-qualcomm: centriq2400-rep: led-manager-config-native: set LICENSE field meta-qualcomm: centriq2400-rep: socupdate: set LICENSE field meta-qualcomm: centriq2400-rep: rep-config: set LICENSE field Change-Id: I818424bf2e7e8af8aaf97fa4fcfd1b0476e5748e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-10-06meta-qualcomm: centriq2400-rep: phosphor-hwmon to _%Patrick Venture26-0/+0
Renamed phosphor-hwmon%.bbappend to phosphor-hwmon_%.bbappend for this platform. Tested: Built centriq2400-rep and found conf in rootfs. (From meta-qualcomm rev: 2d5d845e7d80463e327bf0f2732b7b1da8e34395) Change-Id: I2ca665fbb5efd1718ee74893d0f5603f7329d67a Signed-off-by: Patrick Venture <venture@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-05Spelling fixesGunnar Mills2-2/+2
Spelling errors found using github.com/lucasdemarchi/codespell A tool to fix common misspellings. This tool is licensed under GNU General Public License, version 2. (From meta-qualcomm rev: b52915eccb117275d468e6de784a6c561e30055b) Change-Id: Icc97612db517518e779994860ed11e90c9b916a5 Signed-off-by: Gunnar Mills <gmills@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-08-23[Subtree] Bring openbmc machines to top levelDave Cobbley48-0/+923
The new subtree model brings the subtrees up from the openbmc-machines layer. Change-Id: I58a03ae1be374bc79ae1438e65e888375d12d0c0 Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>