Thanks a lot Colin for taking the time to read through my message and reply.
I ended up using Android.bp files as you suggested.

Since all these tools were dropped from building in android10, I though 
they were never converted to blueprint files.
It turns out commit 7623033 had them, and with minor changes I made them 
compiling for target device.



On Tuesday, March 3, 2020 at 12:25:31 AM UTC+2, Colin Cross wrote:
>
> Those files are generated by the llvm_tblgen modules in 
> external/llvm/Android.bp.  You'll find their outputs at:
>
> out/soong/.intermediates/external/llvm/llvm-gen-attributes/gen/llvm/IR/Attributes.inc
>
> out/soong/.intermediates/external/llvm/llvm-gen-intrinsics/gen/llvm/IR/Intrinsics.gen
>
> As a hack you could copy those files to the places where the Android.mk 
> files create them, just be aware they will not be updated if you make 
> changes to the source files and rebuild.  You could also try reverting the 
> change that removed generating those files in Make:
> commit 7ebb1e3516ebd630aa3fe94f9b4cca2c2dbb09ae
> Author: Dan Willemsen <[email protected] <javascript:>>
> Date:   Thu Nov 1 00:16:34 2018 -0700
>
>     Disable tblgen in Make
>     
>     The last user of these have been removed. simpleperf is still using
>     LLVM_HOST_BUILD_MK and LLVM_DEVICE_BUILD_MK, so these can't all be
>     removed yet.
>     
>     Test: treehugger
>     Change-Id: I0b3966fa5630e9795a1e7d7b9658f9a2bcad5271
>
> You'll likely have better success building opt, llvm-link and llc using 
> Android.bp files than trying to get the old Android.mk files to work though.
>
> On Mon, Mar 2, 2020 at 12:49 PM Paschalis Mpeis <[email protected] 
> <javascript:>> wrote:
>
>> Hi there,
>>
>> I am building some tools from *external/llvm*, specifically *opt*, 
>> *llvm-link*, and* llc*.
>> For this, I revived the relevant Android.mk from previous commits
>> (for each of the tools, and a relevant portion at 
>> external/llvm/Android.mk).
>> They are normally picked up by the soong build system, and I can for 
>> example call: `m opt`.
>>
>> However, these tools depend on *two intermediates*:
>>
>>    - 
>>    
>> target/product/<DEVICE>/gen/EXECUTABLES/opt_intermediates/llvm/IR/Attributes.inc
>>    - 
>>    
>> target/product/<DEVICE>/gen/EXECUTABLES/opt_intermediates/llvm/IR/Intrinsics.gen
>>
>> I have enabled FORCE_BUILD_LLVM_COMPONENTS (see here 
>> <https://cs.android.com/android/platform/superproject/+/android10-release:external/llvm/Android.bp;l=159>
>> )
>> and I can see there are relevant entries for what I want at lines: 148 
>> <https://cs.android.com/android/platform/superproject/+/android10-release:external/llvm/Android.bp;l=148>
>>  and  154 
>> <https://cs.android.com/android/platform/superproject/+/android10-release:external/llvm/Android.bp;l=154>
>> .
>>
>> So, is my question is: is there a way to generate those 2 intermediate 
>> files using the existing Android.bp setup on android10-release branch 
>> <https://cs.android.com/android/platform/superproject/+/android10-release:external/llvm/>
>> ?
>>
>> Cheers,
>> Paschalis
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the "Android 
>> Building" mailing list.
>> To post to this group, send email to [email protected] 
>> <javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/android-building/6e937488-80cb-42c8-b15c-087cafb7c400%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/android-building/6e937488-80cb-42c8-b15c-087cafb7c400%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-building/0feac059-4b45-4dce-a239-62c303bc9e26%40googlegroups.com.

Reply via email to