Re: [android-building] Build walleye kernel on macos

2018-08-27 Thread 'Dan Willemsen' via Android Building
It appears to be a bug in the kernel makefiles, not mkdtimg itself.
Specifically here:

https://android.googlesource.com/kernel/msm/+/android-8.1.0_r0.31/scripts/Makefile.lib#327

`stat` takes different arguments on Mac and Linux.

The kernel builds are really only tested on Linux, so you may have better
luck reproducing them using a Linux VM if you're on a Mac.

- Dan

On Mon, Aug 27, 2018 at 9:09 AM 杨凡  wrote:

> My code is :
> Kernel tag :android-8.1.0_r0.31
> AOSP tag :android-8.1.0_r15
>
> I build walleye Kernel on MacOS happen mkdtimg align 4096,
> it happen these error following:
>
> yangfan command = cfg_create   ---this print is that I comment in
> mkdtimg source code.
> create image file: arch/arm64/boot/dtbo.img...
> Total yangfan 18 entries.---this print is that I comment in
> mkdtimg source code.
> Total yangfan 0 output_img_with_config.  ---this print is that I
> comment in mkdtimg source code.
> stat: illegal option -- c
> usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
> stat: illegal option -- c
> usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
> /bin/sh: (+4096-1)/4096*4096-: syntax error: operand expected (error token
> is "-")
> make[1]: *** [arch/arm64/boot/dtbo.img] Error 127
> make: *** [dtbo.img] Error 2
> make: *** Waiting for unfinished jobs
>
> And so, I modify these Makefile in the path  :/arch/arm64/boot/Makefile,
> delete the align dtbo.img to 4kB, it compile ok
> diff --git a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile
> index 7d11ab13d49b..3cbbc9abb9ce 100644
> --- a/arch/arm64/boot/Makefile
> +++ b/arch/arm64/boot/Makefile
> @@ -53,7 +53,9 @@ $(obj)/Image.lz4-dtb: $(obj)/Image.lz4 $(DTB_OBJS) FORCE
> $(call if_changed,cat)
>
>  $(obj)/dtbo.img: $(obj)/dts/dtboimg.cfg $(DTBO_OBJS) FORCE
> -   $(call if_changed,mkdtimg,4096) # align dtbo.img to 4kB
> +   $(call if_changed,mkdtimg) # align dtbo.img to 4kB
>
>
> So ,I wonder it is a bug in mkdtimg code???
>
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-building] Re: Android 9 "Pie" source code is now available.

2018-08-27 Thread 杨凡
same issue in earlier version ,this tag:android-8.1.0_r15 

在 2018年8月21日星期二 UTC+8上午4:16:38,Jean-Marc GRIMAUD写道:
>
> Hello,
> thanks a lot for the information !
> I made the exercice to build and flash AOSP from source on a Pixel 2-XL 
> and it works, thank you !
>
> However, I have an issue with the kernel part: there is no more 
> touchscreen if I use a kernel I build by myself.
> I use the branch android-msm-wahoo-4.4-pie wahoo_defconfig.
>
> Is there any known issue ?
>
> Jean-Marc
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-building] Re: How to build boot image with root permission?

2018-08-27 Thread 杨凡
Sorry ,I have tried use the userdebug option for building ,in Android O, it 
is still in user mode.

在 2018年4月26日星期四 UTC+8下午11:28:36,Abhishek Dwivedi写道:
>
> userdebug is there for you
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-building] How to build the Latin IME input method?

2018-08-27 Thread Vedant Roy
I am trying to build the Latin IME input method. 

The source code can be found 
here: 
https://android.googlesource.com/platform/packages/inputmethods/LatinIME/+/master

Are there any guides on how to build Android source code. Any tips at all 
would be helpful. For instance - what are the tools I need, what files are 
actually necessary for the build etc. 

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-building] Build walleye kernel on macos

2018-08-27 Thread 杨凡
My code is :
Kernel tag :android-8.1.0_r0.31
AOSP tag :android-8.1.0_r15

I build walleye Kernel on MacOS happen mkdtimg align 4096,
it happen these error following:

yangfan command = cfg_create   ---this print is that I comment in 
mkdtimg source code.
create image file: arch/arm64/boot/dtbo.img...
Total yangfan 18 entries.---this print is that I comment in mkdtimg 
source code.
Total yangfan 0 output_img_with_config.  ---this print is that I 
comment in mkdtimg source code.
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
stat: illegal option -- c
usage: stat [-FlLnqrsx] [-f format] [-t timefmt] [file ...]
/bin/sh: (+4096-1)/4096*4096-: syntax error: operand expected (error token 
is "-")
make[1]: *** [arch/arm64/boot/dtbo.img] Error 127
make: *** [dtbo.img] Error 2
make: *** Waiting for unfinished jobs

And so, I modify these Makefile in the path  :/arch/arm64/boot/Makefile, 
delete the align dtbo.img to 4kB, it compile ok
diff --git a/arch/arm64/boot/Makefile b/arch/arm64/boot/Makefile
index 7d11ab13d49b..3cbbc9abb9ce 100644
--- a/arch/arm64/boot/Makefile
+++ b/arch/arm64/boot/Makefile
@@ -53,7 +53,9 @@ $(obj)/Image.lz4-dtb: $(obj)/Image.lz4 $(DTB_OBJS) FORCE
$(call if_changed,cat)

 $(obj)/dtbo.img: $(obj)/dts/dtboimg.cfg $(DTBO_OBJS) FORCE
-   $(call if_changed,mkdtimg,4096) # align dtbo.img to 4kB
+   $(call if_changed,mkdtimg) # align dtbo.img to 4kB


So ,I wonder it is a bug in mkdtimg code???


-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.