Closed Bug 1241747 Opened 8 years ago Closed 8 years ago

[porting][nexusplayer] device-google-atv porting

Categories

(Firefox OS Graveyard :: GonkIntegration, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: fatseng, Assigned: fatseng)

References

Details

Attachments

(2 files)

Modify atv_base.mk to solve build break and add b2g necessary
Attached file device-google-atv PR
1. Remove unused module libfilterpack_imageproc.
   It causes build break.
2. Do not store the Android ringtones in the system image(Bug 825142)

We also removed above two in mozilla-b2g/platform_build.

3. Inherit external/moztt/fonts.mk and gonk-misc/b2g.mk
Attachment #8710830 - Flags: review?(lissyx+mozillians)
Assignee: nobody → fatseng
Status: NEW → ASSIGNED
Blocks: 1239940
Comment on attachment 8710830 [details] [review]
device-google-atv PR

I'm not sure why you need b2g.mk and fonts.mk
Flags: needinfo?(fatseng)
Attachment #8710830 - Flags: review?(lissyx+mozillians)
(In reply to Alexandre LISSY :gerard-majax from comment #2)
> Comment on attachment 8710830 [details] [review]
> device-google-atv PR
> 
> I'm not sure why you need b2g.mk and fonts.mk

They have been added into build/target/product/generic_no_telephony.mk
I hit build break without b2g.mk.
Here is error message.
"build/core/base_rules.mk:158: *** system/core/rootdir: MODULE.TARGET.ETC.init.rc already defined by gonk-misc.  Stop."

Without fonts.mk, nexusplayer becomes black screen.
It hit system crash while booting.
Flags: needinfo?(fatseng) → needinfo?(lissyx+mozillians)
(In reply to Farmer Tseng[:fatseng] from comment #3)
> (In reply to Alexandre LISSY :gerard-majax from comment #2)
> > Comment on attachment 8710830 [details] [review]
> > device-google-atv PR
> > 
> > I'm not sure why you need b2g.mk and fonts.mk
> 
> They have been added into build/target/product/generic_no_telephony.mk
> I hit build break without b2g.mk.
> Here is error message.
> "build/core/base_rules.mk:158: *** system/core/rootdir:
> MODULE.TARGET.ETC.init.rc already defined by gonk-misc.  Stop."

I guess you need to read Android.mk there ;)

Hint: ifneq ($(TARGET_PROVIDES_B2G_INIT_RC),true)

> 
> Without fonts.mk, nexusplayer becomes black screen.
> It hit system crash while booting.

Ok, so you don't need fonts.mk in that file now?
Flags: needinfo?(lissyx+mozillians)
(In reply to Alexandre LISSY :gerard-majax from comment #4)
> (In reply to Farmer Tseng[:fatseng] from comment #3)
> > (In reply to Alexandre LISSY :gerard-majax from comment #2)
> > > Comment on attachment 8710830 [details] [review]
> > > device-google-atv PR
> > > 
> > > I'm not sure why you need b2g.mk and fonts.mk
> > 
> > They have been added into build/target/product/generic_no_telephony.mk
> > I hit build break without b2g.mk.
> > Here is error message.
> > "build/core/base_rules.mk:158: *** system/core/rootdir:
> > MODULE.TARGET.ETC.init.rc already defined by gonk-misc.  Stop."
> 
> I guess you need to read Android.mk there ;)
> 
> Hint: ifneq ($(TARGET_PROVIDES_B2G_INIT_RC),true)
> 
> > 
> > Without fonts.mk, nexusplayer becomes black screen.
> > It hit system crash while booting.
> 
> Ok, so you don't need fonts.mk in that file now?

I mean I need it.
Flags: needinfo?(lissyx+mozillians)
(In reply to Alexandre LISSY :gerard-majax from comment #4)
> (In reply to Farmer Tseng[:fatseng] from comment #3)
> > (In reply to Alexandre LISSY :gerard-majax from comment #2)
> > > Comment on attachment 8710830 [details] [review]
> > > device-google-atv PR
> > > 
> > > I'm not sure why you need b2g.mk and fonts.mk
> > 
> > They have been added into build/target/product/generic_no_telephony.mk
> > I hit build break without b2g.mk.
> > Here is error message.
> > "build/core/base_rules.mk:158: *** system/core/rootdir:
> > MODULE.TARGET.ETC.init.rc already defined by gonk-misc.  Stop."
> 
> I guess you need to read Android.mk there ;)
> 
> Hint: ifneq ($(TARGET_PROVIDES_B2G_INIT_RC),true)
> 
Per checked, I found init.rc already defined in gonk-misc/Android.mk.
Therefore, I need b2g.mk to set TARGET_PROVIDES_B2G_INIT_RC as true.
Besides, I also need b2g.mk to add other stuff, like sepolicy.
> > 
> > Without fonts.mk, nexusplayer becomes black screen.
> > It hit system crash while booting.
> 
> Ok, so you don't need fonts.mk in that file now?
I mean system would hit crash if I don't include font.mk
gecko/gfx/thebes/gfxFT2FontList.cpp can't ready fonts under /system/font/.
So, I need it.
Here is error log.
01-25 10:21:57.205 I/Gecko   (  171): [171] ###!!! ABORT: Could not read the system fonts directory: file ../../../gecko/gfx/thebes/gfxFT2FontList.cpp, line 1188
01-25 10:21:57.205 E/Gecko   (  171): mozalloc_abort: [171] ###!!! ABORT: Could not read the system fonts directory: file ../../../gecko/gfx/thebes/gfxFT2FontList.cpp, line 1188
(In reply to Farmer Tseng[:fatseng] from comment #6)
> (In reply to Alexandre LISSY :gerard-majax from comment #4)
> > Hint: ifneq ($(TARGET_PROVIDES_B2G_INIT_RC),true)
> > 
> Per checked, I found init.rc already defined in gonk-misc/Android.mk.
> Therefore, I need b2g.mk to set TARGET_PROVIDES_B2G_INIT_RC as true.
> Besides, I also need b2g.mk to add other stuff, like sepolicy.

I don't understand. Does your device already provides an init.rc suitable for B2G ? Or does it already does a copy of Android's init.rc that would mess with this definition?

You might just need to toggle that variable.
Flags: needinfo?(lissyx+mozillians)
Attached file device-asus-fugu PR
use system/core/rootdir/init.rc
Attachment #8712071 - Flags: review?(lissyx+mozillians)
Per checked, Using system/core/rootdir/init.rc is enough.
I don't meet build break and device could boot to TV home screen.
Please help review both patches.
Attachment #8710830 - Flags: review?(lissyx+mozillians)
Attachment #8712071 - Flags: review?(lissyx+mozillians) → review+
Attachment #8710830 - Flags: review?(lissyx+mozillians) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: