Bug 1734 - [Build Appliance] Create image with X and Pygtk support
Summary: [Build Appliance] Create image with X and Pygtk support
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 1.2 M2
Assignee: Edwin Zhai
QA Contact:
URL:
Whiteboard: (P1) (QA Testing Completed)(Done)
Depends on:
Blocks:
 
Reported: 2011-11-04 03:50 UTC by Edwin Zhai
Modified: 2012-02-05 17:59 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments
remove minimal width limitation of hob main window (2.53 KB, patch)
2011-12-12 00:55 UTC, Edwin Zhai
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Zhai 2011-11-04 03:50:04 UTC
Integrate hob in L1 target's build

we need do:
1. achieve minimal X system and required LIB to start terminal
2. add pygtk and integrate hob
Comment 1 Dexuan Cui 2011-12-11 22:09:24 UTC
(In reply to comment #0)
> Integrate hob in L1 target's build
> 
> we need do:
> 1. achieve minimal X system and required LIB to start terminal
> 2. add pygtk and integrate hob

Edwin has implemented this and is rebasing the patch.

Edwin, please update the Status field.
Comment 2 Edwin Zhai 2011-12-12 00:49:35 UTC
1. mini X
I created a batch of applications called "x11-mini", which can be included as IMAGE_FEATURE. And also a miniX session file is also created to start minimal environment: Xorg + matchbox-terminal.

Another issue is we need run appls on behalf of normal user instead of root. One possible solution is rootless X, which depends on KMS that required physical DRI, so only physical atompc support it, while qemu/vmware doesn't(chmod u+s /usr/bin/xinit can hack, but may introduce security hole).

I use another option: ask the normal user put some script into /etc/minix/session.d/, then mini X session will check and run them on behalf of script owner. It works well.
Comment 3 Edwin Zhai 2011-12-12 00:54:24 UTC
2. hob integration
There is no issue here, since X and pygtk already there. Just start hob inside bitbake directory works perfect.

One minor issue is the components in the hob main window has minimal width limitation, so that the whole window can't be decreased. We can use attached patch to remove such limitation, or change the resolution of emulated monitor in qemu/vmware.

Patch is out for review.
Comment 4 Edwin Zhai 2011-12-12 00:55:41 UTC
Created attachment 292 [details]
remove minimal width limitation of hob main window
Comment 5 Jiajun Xu 2012-01-18 17:11:01 UTC
I tested HOB in build appliance against 1.2 M2. It could work well.
Comment 6 Edwin Zhai 2012-02-05 17:59:24 UTC
Patch in.