Closed Bug 1010128 Opened 10 years ago Closed 10 years ago

[Flatfish] Set GAIA_DEVICE_TYPE for tablet distribution

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S2 (23may)

People

(Reporter: dliang, Assigned: dliang)

References

Details

Attachments

(1 file)

Due to Gaia will be remove the distribution_tablet folder, so we need to set GAIA_DEVICE_TYPE for correct distribution.
Attached file pull request for bug 1010128.html (deleted) —
Attachment #8422334 - Flags: feedback?(kli)
Assignee: nobody → dliang
Comment on attachment 8422334 [details] pull request for bug 1010128.html Marco, Now GAIA can support build for different distribution. We need to add "tablet" distribution for flatfish. Could you help to review this patch? Thanks!
Attachment #8422334 - Flags: review?(mchen)
Attachment #8422334 - Flags: feedback?(kli)
Attachment #8422334 - Flags: feedback+
Comment on attachment 8422334 [details] pull request for bug 1010128.html Hi, Is GAIA_DEVICE_TYPE a env variable or just a variable in make process? I think it is for make process, could you just use "GAIA_DEVICE_TYPE := tablet"? (ex: https://github.com/mozilla-b2g/device-helix/blob/master/full_helix.mk#L35)
Attachment #8422334 - Flags: review?(mchen)
(In reply to Marco Chen [:mchen] from comment #3) > Comment on attachment 8422334 [details] > pull request for bug 1010128.html > > Hi, > > Is GAIA_DEVICE_TYPE a env variable or just a variable in make process? > > I think it is for make process, could you just use "GAIA_DEVICE_TYPE := > tablet"? > (ex: > https://github.com/mozilla-b2g/device-helix/blob/master/full_helix.mk#L35) It's just for make process, but GAIA_DEVICE_TYPE is checked in Makefile, not .mk file, the flag in full_flatfish.mk cannot be passed to gaia by "GAIA_DEVICE_TYPE := tablet". Hi Gary, Could you add some check in Android.mk to receive this gaia flag? The example as below: ./Android.mk:33:ifneq (,$(GAIA_DEV_PIXELS_PER_PX)) ./Android.mk:34:GAIA_MAKE_FLAGS += GAIA_DEV_PIXELS_PER_PX=$(GAIA_DEV_PIXELS_PER_PX) And then we can use GAIA_DEVICE_TYPE := tablet to follow the code style in .mk file. Thanks,
Flags: needinfo?(gchen)
Danny, I think you are right. As I know gaia Makefile can't use compile flag from aosp build system, and need to export as an env variable. That's why I had feedback+ to your patch.
Hi Danny, Yes, add new make flags from AOSP build system into GAIA_MAKE_FLAGS should be a generic way for passing into Gaia build system. And we already had an example from GAIA_DEV_PIXELS_PER_PX.
No longer blocks: 1012497
Depends on: 1012497
(In reply to Danny Liang [:dliang] from comment #4) > (In reply to Marco Chen [:mchen] from comment #3) > > Comment on attachment 8422334 [details] > > pull request for bug 1010128.html > > > > Hi, > > > > Is GAIA_DEVICE_TYPE a env variable or just a variable in make process? > > > > I think it is for make process, could you just use "GAIA_DEVICE_TYPE := > > tablet"? > > (ex: > > https://github.com/mozilla-b2g/device-helix/blob/master/full_helix.mk#L35) > > It's just for make process, but GAIA_DEVICE_TYPE is checked in Makefile, not > .mk file, the flag in full_flatfish.mk cannot be passed to gaia by > "GAIA_DEVICE_TYPE := tablet". > > Hi Gary, > Could you add some check in Android.mk to receive this gaia flag? The > example as below: > > ./Android.mk:33:ifneq (,$(GAIA_DEV_PIXELS_PER_PX)) > ./Android.mk:34:GAIA_MAKE_FLAGS += > GAIA_DEV_PIXELS_PER_PX=$(GAIA_DEV_PIXELS_PER_PX) > > And then we can use GAIA_DEVICE_TYPE := tablet to follow the code style in > .mk file. > Thanks, Hi Danny, OK!!! I just send a patch and ask Marco and Yuren to review my patch. Please wait for landing that patch. Thanks.
Comment on attachment 8422334 [details] pull request for bug 1010128.html I have modified the PR and please help to review it.
Attachment #8422334 - Flags: review?(mchen)
Comment on attachment 8422334 [details] pull request for bug 1010128.html Thanks for looking into tablet project.
Attachment #8422334 - Flags: review?(mchen) → review+
Flags: needinfo?(gchen)
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S2 (23may)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: