Skip to content

Commit

Permalink
Fix weston not starting under sysvinit
Browse files Browse the repository at this point in the history
Related to Freescale#123

Modify configuration files to support sysvinit for weston.

* **conf/distro/fsl-wayland.conf**
  - Set `INIT_MANAGER` to "sysvinit" when sysvinit is used.
  - Add a conditional check for sysvinit in the `INIT_MANAGER` setting.

* **conf/distro/fslc-wayland.conf**
  - Set `INIT_MANAGER` to "sysvinit" when sysvinit is used.
  - Add a conditional check for sysvinit in the `INIT_MANAGER` setting.

* **recipes-fsl/images/fsl-image-machine-test.bb**
  - Include necessary sysvinit configurations for weston.
  - Add a conditional check for sysvinit in the `CORE_IMAGE_EXTRA_INSTALL` setting.

* **recipes-fsl/images/fsl-image-multimedia.bb**
  - Include necessary sysvinit configurations for weston.
  - Add a conditional check for sysvinit in the `CORE_IMAGE_EXTRA_INSTALL` setting.
  • Loading branch information
vishwamartur committed Nov 5, 2024
1 parent 76ad024 commit e444695
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/distro/fsl-wayland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DISTRO = "fsl-wayland"
DISTRO_NAME = "FSL Wayland"

# Define Init System
INIT_MANAGER = "systemd"
INIT_MANAGER = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit', 'systemd', d)}"

# Remove conflicting backends
DISTRO_FEATURES:remove = "directfb x11"
Expand Down
2 changes: 1 addition & 1 deletion conf/distro/fslc-wayland.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DISTRO = "fslc-wayland"
DISTRO_NAME = "FSLC Wayland"

# Define Init System
INIT_MANAGER = "systemd"
INIT_MANAGER = "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit', 'systemd', d)}"

# Remove conflicting backends
DISTRO_FEATURES:remove = "directfb x11"
Expand Down
2 changes: 2 additions & 0 deletions recipes-fsl/images/fsl-image-machine-test.bb
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ CORE_IMAGE_EXTRA_INSTALL += " \
'weston weston-init', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', \
'weston-xwayland xterm', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', \
'weston-sysvinit', '', d)} \
"
2 changes: 2 additions & 0 deletions recipes-fsl/images/fsl-image-multimedia.bb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ CORE_IMAGE_EXTRA_INSTALL += " \
gtk+3-demo', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', \
'weston-xwayland xterm', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', \
'weston-sysvinit', '', d)} \
"

PACKAGE_IMX_TO_REMOVE = ""
Expand Down

0 comments on commit e444695

Please sign in to comment.