aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-distro
AgeCommit message (Collapse)Author
2019-10-06dpkg: add a service to configure postinsts failed pkgs before GUI loadsArsalan H. Awan
SATO GUI sometimes doesn't show icons depending upon how the system booted first time and configured itself. This happens because some postinsts fail while do_rootfs becasue qemu usermode is not supported for AMD: NOTE: The postinstall intercept hook 'update_gio_module_cache' could not be executed due to missing qemu usermode support... NOTE: If an image is being built, the postinstalls for the following packages will be postponed for first boot: gconf glib-networking libglib-2.0-0 NOTE: The postinstall intercept hook 'update_font_cache' could not be executed due to missing qemu usermode support... NOTE: If an image is being built, the postinstalls for the following packages will be postponed for first boot: liberation-fonts NOTE: The postinstall intercept hook 'update_pixbuf_cache' could not be executed due to missing qemu usermode support... NOTE: If an image is being built, the postinstalls for the following packages will be postponed for first boot: libgdk-pixbuf-2.0-loader-gif libgdk-pixbuf-2.0-loader-jpeg libgdk-pixbuf-2.0-loader-png libgdk-pixbuf-2.0-loader-xpm These failing postinsts are deferred for execution on first boot. Now, the way debian package-management is implemented in yocto, it does not handle some corner cases where these postinsts might fail even on first boot - resulting in many pkgs being not configured: Errors were encountered while processing: libglib-2.0-0 glib-networking libgdk-pixbuf-2.0-loader-jpeg libgdk-pixbuf-2.0-loader-png matchbox-keyboard-im libgdk-pixbuf-2.0-loader-gif libgdk-pixbuf-2.0-loader-xpm gconf As a result, sato gui fails to show icons and fonts properly... This adds a service that attempts to reconfigure the pkgs (before the graphics load up after basic system init on first boot) that had failed postinsts. Service then disables itself and never runs again. That fixes the issues with SATO GUI. INTAMDDET-2758 Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-10-06meta-amd-distro/layer.conf: include bb and bbappend filesArsalan H. Awan
We need to add recipes in this layer. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-09-14distro/poky-amd.conf: fix sdk build with debian package-managementArsalan H. Awan
Exclude complementary (-src,-dbg & -dev) pkgs of the following recipes as they are not required while populate_sdk, and they fail to get installed due to missing dependencies, therefore generate a warning and even the rest of the complementary pkgs in the list don't get installed when using debian based package-managemant. PACKAGE_EXCLUDE_COMPLEMENTARY = "dpkg|autoconf|automake|packagegroup-core-buildessential|packagegroup-core-sdk|packagegroup-core-tools-profile|perf|quilt|systemtap|target-sdk-provides-dummy" "apt" is an exception to the above PACKAGE_EXCLUDE_COMPLEMENTARY list as oe uses apt itself to install/remove/exclude the above-listed complementary pkgs, and when apt is listed in the above-listed PACKAGE_EXCLUDE_COMPLEMENTARY, it tries to removes itself, and it asks for user input and oe gets out of there and our complementary pkgs don't get installed, but they are required for development and debugging purposes using the SDK. TOOLCHAIN_TARGET_TASK_remove = " apt" Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-09-11distro/poky-amd.conf: rm hddimg completely and only support wic and isoArsalan H. Awan
IMAGE_FSTYPE "live" is not enabled anymore by default. So we only enable what we need i.e. "wic" for USB Flash Drive, & "iso" for CD/DVD. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-09-11meta-amd-distro: mv distro related configs and the wic img file hereArsalan H. Awan
This moves the meta-amd-bsp/scripts/lib/wic/canned-wks/amd-usbimage.wks to meta-amd-distro/scripts/lib/wic/canned-wks/amd-usbimage.wks, and the wic img settings from amd-common-configurations.inc to poky-amd.conf, as well as a few related configs as well that are not BSP configs, rather distro configs. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-07-25poky-amd: enable devices auto mounting using udev-extraconfArsalan H. Awan
This makes the storage devices such as sata hdd/ssd or usb to be auto mounted on hotplug. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-07-25poky-amd: add rootfs space to avoid no space left issues on first bootArsalan H. Awan
This adds extra space of 50 MB to the final created rootfs to allow first boot postinstall intercept scripts and system init configuration to be able to create files and make the system boot up properly and so that all the components are configured properly. We don't need this normally, but as the rootfs size grows, "du" utility that is used to calculate the size of rootfs to create a rootfs image doesn't do the job well. Therefore, we observe various components such as systemd units and xserver failing to create files saying: No space left. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-07-25poky-amd: enable buildhistoryArsalan H. Awan
This enables buildhistory in build dir to facilitate development. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-07-25poky-amd: enable connman as network managerArsalan H. Awan
This adds connman to DISTRO_EXTRA_RDEPENDS to enable it as the network manager in poky-amd. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-07-25poky-amd: enable openssh-server via IMAGE_FEATURE ssh-server-opensshArsalan H. Awan
This enables the openssh-server as the default ssh server in poky-amd. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-07-25poky-amd: enabled package-management with deb PACKAGE_CLASSESArsalan H. Awan
This enables IMAGE_FEATUE package-management and sets the PACKAGE_CLASSES var to "package_deb" to enable debian packages that can be controlled/manipulated with dpkg and apt. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-07-25poky-amd: disable sysvinit and enable systemd as system init managerArsalan H. Awan
This disables sysvinit and removes its initscripts, and enables systemd as system init manager. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-07-25meta-amd-distro: initialize amd distro layer with poky-amd distroArsalan H. Awan
This adds a new distro layer for AMD BSPs and creates a poky-amd distro based on poky distro. We will customize this as per the requirements. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>