yashsingh1/xdaforums huggingface dataset:
[Android] bullet25:
Hello, I am trying to build AOSPA for the Asus Zenfone2 (Z00A). I believe I have all the pa specific files setup correctly. but when I try and build I get this error.

Traceback (most recent call last):
File "build/tools/roomservice.py", line 63, in <module>
dependencies = json.loads(open(dependencies_json_path, 'r').read())
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting property name: line 19 column 3 (char 494)

** Roomservice failure for: 'pa_Z00A'

Can anybody help maybe?
[Android] MSF Jarvis:
Almost no material here to help you. Device tree? Local manifest?
[Android] alteredlikeness:
Can someone offer some advice on this build error?

creating userdata.img...
Running: mkf2fsuserimg.sh /tmp/tmpAMOX82 14273216512
Traceback (most recent call last):
File "./build/tools/releasetools/add_img_to_target_files", line 355, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/add_img_to_target_files", line 349, in main
AddImagesToTargetFiles(args[0])
File "./build/tools/releasetools/add_img_to_target_files", line 314, in AddImagesToTargetFiles
AddUserdata(output_zip)
File "./build/tools/releasetools/add_img_to_target_files", line 200, in AddUserdata
succ = build_image.BuildImage(user_dir, image_props, img.name)
File "/home/alt/and/work/aospa-m/build/tools/releasetools/build_image.py", line 326, in BuildImage
(_, exit_code) = RunCommand(build_command)
File "/home/alt/and/work/aospa-m/build/tools/releasetools/build_image.py", line 46, in RunCommand
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: * [out/target/product/manta/obj/PACKAGING/target_files_intermediates/pa_manta-target_files-eng.alt.zip] Error 1
make: * Deleting file `out/target/product/manta/obj/PACKAGING/target_files_intermediates/pa_manta-target_files-eng.alt.zip'﻿

Building AOSPA for manta

Ubuntu 14.04

Python2.7

Make 3.81

Java 7 openjdk

Updated android sdk

At a loss...
[Android] bullet25:
Sorry, I didn't think,

Here is the local manifest.

<?xml version="1.0" encoding="UTF-8"?>
<manifest>

<project name="CyanogenMod/android_kernel_asus_moorefield" path="kernel/asus/moorefield" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_asus_mofd-common" path="device/asus/mofd-common" remote="github" revision="cm-13.0" />
<project name="CyanogenMod/android_device_asus_Z00A" path="device/asus/Z00A" remote="github" revision="cm-13.0" />
<project name="CM-zenfone2/proprietary_vendor_asus" path="vendor/asus" remote="github" revision="cm-13.0" />
<project name="CM-zenfone2/android_hardware_intel_common_libmix" path="hardware/intel/common/libmix" remote="github" revision="cm-13.0" />
<project name="CM-zenfone2/android_hardware_intel_common_libstagefrighthw" path="hardware/intel/common/libstagefrighthw" remote="github" revision="cm-13.0" />
<project name="CM-zenfone2/android_hardware_intel_common_libva" path="hardware/intel/common/libva" remote="github" revision="cm-13.0" />
<project name="CM-zenfone2/android_hardware_intel_common_omx-components" path="hardware/intel/common/omx-components" remote="github" revision="cm-13.0" />
<project name="CM-zenfone2/android_hardware_intel_common_utils" path="hardware/intel/common/utils" remote="github" revision="cm-13.0" />
<project name="CM-zenfone2/android_hardware_intel_common_wrs_omxil_core" path="hardware/intel/common/wrs_omxil_core" remote="github" revision="cm-13.0" />
<project name="CM-zenfone2/android_hardware_intel_img_hwcomposer" path="hardware/intel/img/hwcomposer" remote="github" revision="cm-13.0" />
<project name="CM-zenfone2/android_hardware_intel_img_libdrm" path="hardware/intel/img/libdrm" remote="github" revision="cm-12.1" />
<project name="CM-zenfone2/android_hardware_intel_img_psb_video" path="hardware/intel/img/psb_video" remote="github" revision="cm-13.0" />
</manifest>

The device tree I am using is here:

https://github.com/cyanogenmod/android_device_asus_Z00A/tree/cm-13.0
[Android] MSF Jarvis:
You need to change the makefiles for pa. See any device tree on AOSPA GitHub and change the filenames and contents (sorry, can't spoonfeed, on phone)
[Android] ParanoidNemo:
Also are you should consider switch to AOSPA-CAF. That's the branch to unsupported devices.
[Android] bullet25:
Thank you, I did not know that there were different branches for supported and unsupported devices.
[Android] ParanoidNemo:
Me neither the first time ;) you can obviously continue with AOSPA "main" branch but I could be more difficult to build. Consider also that right now they haven't release the r46 yet so you could encounter huge problem with SELinux
[Android] bullet25:
It also doesn't help that I can't find an AOSPA build guide that isn't from 2014 or earlier, a few things have seemed to changed since then.
[Android] ParanoidNemo:
Yes, the fact is that they are just came back so there aren't much unofficial AOSPA out there. You have to learn by yourself or wait that more people port it and can help you with it. I'm now stuck with the sepolicy problem + an apparent error in source code and waiting to the developers to solve it, or at least reply to me
[Android] skull(nj):
Compiled a ROM successfully but system ui is whole black only setting work:crying:

Also I can't take logs due.to this error
[Android] SlimShady's:
I've compiled AOSPA for my device and successfully booted it. But I'm getting OOMS. Anyone knows how to solve this issue that never happened in any other ROMs?
[Android] skull(nj):
log cats here

pls help me to solve the error
[Android] redfeast:
i am trying to compile only boot.img and twrp for grand prime sm-g530h

i am trying to build twrp 3.0 from cm-12.1 source i got these error

i attached board config.mk as txt please rename it

[ATTACH]3806814._xfImport[/ATTACH]

and here is terminal o/p

Header: /home/prudhvi/dev/android/cm-12.1/out/target/product/fortuna3g/obj/include/mm-core/omxcore/QCMediaDefs.h
Header: /home/prudhvi/dev/android/cm-12.1/out/target/product/fortuna3g/obj/include/mm-core/omxcore/QCMetaData.h
Header: /home/prudhvi/dev/android/cm-12.1/out/target/product/fortuna3g/obj/include/mm-video/DivxDrmDecrypt/DivXDrmDecrypt.h
Header: /home/prudhvi/dev/android/cm-12.1/out/target/product/fortuna3g/obj/include/sdk/softap/include/qsap_api.h
Header: /home/prudhvi/dev/android/cm-12.1/out/target/product/fortuna3g/obj/include/sdk/softap/include/qsap.h
Import includes file: /home/prudhvi/dev/android/cm-12.1/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
Export includes file: system/core/mkbootimg/Android.mk -- /home/prudhvi/dev/android/cm-12.1/out/host/linux-x86/obj32/EXECUTABLES/mkbootimg_intermediates/export_includes
Export includes file: build/libs/host/Android.mk -- /home/prudhvi/dev/android/cm-12.1/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/export_includes
Import includes file: /home/prudhvi/dev/android/cm-12.1/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/import_includes
Export includes file: build/tools/acp/Android.mk -- /home/prudhvi/dev/android/cm-12.1/out/host/linux-x86/obj32/EXECUTABLES/acp_intermediates/export_includes
make: *** No rule to make target '/home/prudhvi/dev/android/cm-12.1/out/host/linux-x86/bin/dtbToolCM', needed by '/home/prudhvi/dev/android/cm-12.1/out/target/product/fortuna3g/dt.img'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/core/libmincrypt/NOTICE -- /home/prudhvi/dev/android/cm-12.1/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt

#### make failed to build some targets (02:11 (mm:ss)) ####
[Android] SlimShady's:
Anyone can help me here?
[Android] MSF Jarvis:
Source error
[Android] SlimShady's:
This didn't happened with w7 (LG L90).

Only happened with espresso (Tab 2 7.0")
[Android] AndDiSa:
The persist_file type definition for the security context is missing. A dirty solution would be to remove that line and set permissive for selinux to true. The right solution would be to define the persist_file type ...
[Android] mirek190:
CC kernel/spinlock.o
CC kernel/uid16.o
CC kernel/module.o
CC kernel/module_signing.o
CC kernel/modsign_pubkey.o
Generating X.509 key generation config
###
### Now generating an X.509 key pair to be used for signing modules.
###
### If this takes a long time, you might wish to run rngd in the
### background to keep the supply of entropy topped up. It
### needs to be run as root, and uses a hardware random
### number generator if one is available.
###
openssl req -new -nodes -utf8 -"sha256" -days 36500 \
-batch -x509 -config x509.genkey \
-outform DER -out signing_key.x509 \
-keyout signing_key.priv 2>&1
1438171948:error:02001014:system library:fopen:Not a directory:external/openssl/crypto/bio/bss_file.c:169:fopen('/system/lib/ssl/openssl.cnf','rb')
1438171948:error:2006D002:BIO routines:BIO_new_file:system lib:external/openssl/crypto/bio/bss_file.c:174:
1438171948:error:0E078002:configuration file routines:DEF_LOAD:system lib:external/openssl/crypto/conf/conf_def.c:199:
make[3]: *** [signing_key.x509] Error 1
make[2]: *** [kernel] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mirek190/INTEL/5.1/linux/kernel'
make: *** [out/target/product/anzhen4_mrd7/kernel] Error 2

#### make failed to build some targets (10:41 (mm:ss)) ####

I'm using ubuntu 14.04 LTS

I'm trying build android 5.1 x86 - here I made command - make bootimage -- to build bootimage ...

Any idea how to fix that problem with openssl

thanks for any help
[Android] jneto3000:
Delete
[Android] SlimShady's:
Tried, it worked but the device doesn't boot. I guess it's because of that (?)
[Android] Droidcore:
hi [MENTION=6552280]MSF Jarvis[/MENTION] , i want try build aospa for my old m7,,

Any setup? I get roomservice error :/ ( Python error )

use cm source it is ok?

Im sorry im not have log,, because still not building,, stop at romservice err
[Android] dragos281993:
Hello ! I hope someone knows what I'm doing wrong here. I'm trying to build Pure Nexus from source for my Nexus 4, I put everything into place, configured the local_manifest to get the stuff required for the Nexus 4, but then when I try to build the ROM, I run ". build/envsetup.sh", then "time brunch mako", or "brunch mako", (I tried all the commands), but I get this error:

Checking build tools versions...

external/wpa_supplicant_8/hostapd/Android.mk:255: external/wpa_supplicant_8/hostapd/src/drivers/drivers.mk: No such file or directory

external/wpa_supplicant_8/wpa_supplicant/Android.mk:318: external/wpa_supplicant_8/wpa_supplicant/src/drivers/drivers.mk: No such file or directory

find: `dummy': No such file or directory

find: `dummy': No such file or directory

find: `dummy': No such file or directory

find: `dummy': No such file or directory

find: `dummy': No such file or directory

find: `dummy': No such file or directory

find: `dummy': No such file or directory

fatal: bad object HEAD

fatal: bad object HEAD

build/core/Makefile:46: warning: overriding recipe for target '/home/funny--bunny/PureNexus/out/target/product/mako/system/lib/hw/gps.msm8960.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/funny--bunny/PureNexus/out/target/product/mako/system/lib/hw/gps.msm8960.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/funny--bunny/PureNexus/out/target/product/mako/system/lib/libgps.utils.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/funny--bunny/PureNexus/out/target/product/mako/system/lib/libgps.utils.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/funny--bunny/PureNexus/out/target/product/mako/system/lib/libloc_core.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/funny--bunny/PureNexus/out/target/product/mako/system/lib/libloc_core.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/funny--bunny/PureNexus/out/target/product/mako/system/lib/libloc_eng.so'

build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/funny--bunny/PureNexus/out/target/product/mako/system/lib/libloc_eng.so'

No private recovery resources for TARGET_DEVICE mako

make: *** No rule to make target 'external/wpa_supplicant_8/wpa_supplicant/src/drivers/drivers.mk'. Stop.

#### make failed to build some targets (01:16 (mm:ss)) ####

Can anyone tell me what I'm doing wrong, or what else I need in order to finish building the ROM successfully ? I'm using Ubuntu 15.10. Any help is appreciated.

Thanks in advance !
[Android] MSF Jarvis:
Did you modify your device tree for PA? I was having a similar roomservice error when building DU with CM sources despite modifications, turned out I was missing on change. You should find a PA device tree and then modify the filename and vendor calls for it.
[Android] jneto3000:
Anyone can help me here? This kind of error started after I apply comands to use ccache:

https://gist.github.com/jneto3000/d89edd6afe86d235e06cf76cf2a120c2
[Android] Arvind7352:
Check if the folder 'external/libcxx' is present

And share the commands you entered for getting CCache to work.

export USE_CCACHE=1
export CCACHE_DIR=/path/to/.ccache

prebuilts/misc/linux-x86/ccache/ccache -M NG (Where N is CCache size in GB)

I even see Toolchains missing from your directory. Have you synced the source properly?
[Android] MSF Jarvis:
Tool chains are the largest so probably he jumped ship on them and started building lol
[Android] mirek190:
CC kernel/spinlock.o
CC kernel/uid16.o
CC kernel/module.o
CC kernel/module_signing.o
CC kernel/modsign_pubkey.o
Generating X.509 key generation config
###
### Now generating an X.509 key pair to be used for signing modules.
###
### If this takes a long time, you might wish to run rngd in the
### background to keep the supply of entropy topped up. It
### needs to be run as root, and uses a hardware random
### number generator if one is available.
###
openssl req -new -nodes -utf8 -"sha256" -days 36500 \
-batch -x509 -config x509.genkey \
-outform DER -out signing_key.x509 \
-keyout signing_key.priv 2>&1
1438171948:error:02001014:system library:fopen:Not a directory:external/openssl/crypto/bio/bss_file.c:169:fopen('/system/lib/ssl/openssl.cnf','rb')
1438171948:error:2006D002:BIO routines:BIO_new_file:system lib:external/openssl/crypto/bio/bss_file.c:174:
1438171948:error:0E078002:configuration file routines:DEF_LOAD:system lib:external/openssl/crypto/conf/conf_def.c:199:
make[3]: *** [signing_key.x509] Error 1
make[2]: *** [kernel] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/mirek190/INTEL/5.1/linux/kernel'
make: *** [out/target/product/anzhen4_mrd7/kernel] Error 2

#### make failed to build some targets (10:41 (mm:ss)) ####

I'm using ubuntu 14.04 LTS

I'm trying build android 5.1 x86 - here I made command - make bootimage -- to build bootimage ...

Any idea how to fix that problem with openssl - it can be related with java ?

thanks for any help
[Android] jneto3000:
Yes, it is.

I used these:

export USE_CCACHE=1
export CCACHE_DIR=/home/jneto3000/ccache/.ccache
prebuilts/misc/linux-x86/ccache/ccache -M 50

I think I do. I used command from Cyanide manifest.

I used Akhil Narang scripts to install the tools here on Ubuntu 14.04 .

The ROM sources + device kernel, tree and vendor have the size of 16,5 GB.

/bin/bash: /home/jneto3000/Cyanide/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-/bin/arm-linux-androideabi-gcc: No such file or directory
/bin/bash: /home/jneto3000/Cyanide/prebuilts/gcc/linux-x86/arm/arm-eabi-/bin/arm-eabi-gcc: No such file or directory

Those files are present in this right directory. I don't know why it is not recognizing.
[Android] Droidcore:
[MENTION=6552280]MSF Jarvis[/MENTION] i have this error https://gist.github.com/droidcore/cc7127424ca25ee537e626bb846dc9ba

any help?
[Android] MSF Jarvis:
I have had a similar report from [MENTION=5193140]Nonta72[/MENTION] and he said he worked around it by removing the line that builds tinycompress. I'm also running a build in the mean time to check if this error shows up (takes 42 minutes for a full clean build, this should stop it earlier). Beat bet would be to wait for Nonta72 to show up and tell what he changed.
[Android] Arvind7352:
Entered Utility of CCache code incorrectly. IT's 50G and not 50. So it won't be used and it isn't the culprit.

For the Toolchain, yeah. Share your Device tree. Need to check Toolchain Prefix. Probably Toolchain Version isn't defined in your Device Source. (No version number)

BTW, if you have synced UBER Toolchain 4.9 / 5.3 / 6.0 / 7.0 -- Then Add this in BoardConfig.mk

TARGET_GCC_VERSION_EXP := [VERSION]-uber

where VERSION = 4.9 / 5.3 / 6.0 / 7.0
[Android] Startrek852:
42 minutes?!?!? Wow, that's amazing, it takes me about 5 hours for a clean build.
[Android] MSF Jarvis:
[MENTION=5132538]Droidcore[/MENTION], my build completed without this error, on the latest sources so we'll have to wait it out for [MENTION=5193140]Nonta72[/MENTION].

I'm still wrapping my head round this fact! 4 cores, 16 gigs of RAM and a 3 TiB hard disk somehow ends up posting consistent 42 minute builds.
[Android] Startrek852:
That's really amazing, I wish I had those build times. I usually only build at night or when I'm going to be gone for a while because it takes so painfully long.
[Android] MSF Jarvis:
I can give you access to this server if you want, it should not take more than fifty-five minutes(I'm being liberal) to sync and build any ROM you want. And you get free file hosting (https://roms.technologistguild.com) too

Hit me up on PM
[Android] jneto3000:
But it accepted and said 50GByte was set. Or I used 50G and forgot about that ><

Here are the trees i'm using with branch cm-13.0: https://github.com/jneto3000?tab=repositories

I haven't synced UBER Toolchain, shoud I? If so, this guide should work?

http://xdaforums.com/chef-central/android/guide-switching-to-custom-toolchain-t2927662
[Android] Startrek852:
That would be awesome! I will, thanks!
[Android] Nonta72:
Well, I had to go to external/tinycompress and comment the following lines out in Android.mk :

#LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
#LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
[Android] Droidcore:
[MENTION=5193140]Nonta72[/MENTION] [MENTION=6552280]MSF Jarvis[/MENTION] well build done 1 hours ,, thanks guys!
[Android] jneto3000:
My problem is on the ccache indeed. But I created a new machine (Virtual Machine) and then setup everything and these comands for ccache:

cd Cyanide
export USE_CCACHE=1

export CCACHE_DIR=/home/jneto3000/armazenamento/.ccache

Cannot set...

Reboot

export CCACHE_DIR=/home/jneto3000/armazenamento/.ccache

Ok, 50Gbytes set...

cd .bashrc

Added "export USE_CCACHE=1" to the file.

Reboot

But the error still happened when I comand to build.

Now, I created another new machine and this time not applying CCache and this time the building is working fine. But it only worked when building another ROM for another device :(

Is there a way I can undo the ccache commands?
[Android] Arvind7352:
Remove CCache commands in .bashrc and reboot / source ~/.bashrc

Tip! : export commands performed in terminal will be persistent until you close that particular Terminal Window.

So Enter the export commands and start the Build on the SAME Terminal Window. Don't do it seperately. A Better way is to add them to .bashrc and source ~/.bashrc to get it executed immediately.
[Android] kn06497:
somebody can helpme?

http://pastebin.com/Q3UcQja7

is AOSPA 6.0
[Android] Nonta72:
Well done!

[MENTION=6552280]MSF Jarvis[/MENTION] I'm running into a weird issue, the make command completes successfully but no rom.zip in out dir :confused:

I also went into out/system folder and couldn't find SystemUI.apk ! Same with omni frameworks.

Any idea ?

I tried to compile Omni 5.1

See screenshot below
[Android] MSF Jarvis:
Hit me up on Hangouts: msfjarvis@gmail.com
[Android] jneto3000:
Good to know.

But now I think the problem is not with Ccache... You see, without Ccache I was able to build Pure Nexus for Nexus 5 (only using PN sources, pure), after that I downloaded Cyanide sources and the trees for LG G2 but when I comand to compile it gave me the same error I was having before, even thought I haven't set Ccache. Looks like I'm missing some libraries, but in this same machine I was compiling without these errors and they started to show after I added "sony_boringssl-compat" and "stlport" to the local_manifests (LG G2 things) and also set Ccache. The fact is that in this new machine the only things I added was these two ones to local_manifests, not ccache anymore, and the error is still happening, maybe they are the cause. What doesn't makes sense is that the machine says there are missing libc++ rules when mkbootimg asks for them. Looking on Google I found something similar, and they said that the problem was due to the Ubuntu being 64 bits and the machine needs somes 32 bits libs.

I'm new to all this, Linux and ROM's compiling , that's why i'm suffering so much to make it work.
[Android] Arvind7352:
Something like this ? - http://askubuntu.com/questions/575505/glibcxx-3-4-20-not-found-how-to-fix-this-error
[Android] jneto3000:
Sorry, the solution I was talking about was for "arm-eabi-gcc: No such file or directory" and "arm-linux-androideabi-gcc: No such file or directory".

And I found this: http://stackoverflow.com/questions/...i-gcc-is-not-present-when-it-is-clearly-there

Maybe this is related to the libc++ error.

Here you can see the log of the errors i'm having:

https://gist.github.com/jneto3000/d89edd6afe86d235e06cf76cf2a120c2
[Android] mirek190:
Thanks for help ...

I solved that by myself.

It appeared I earlier generated RSA keys for encrypted connection and that move broke some how possibility to generate keys for source .....
[Android] Arvind7352:
For that TC Error, I think, either of these exports must solve your problem

export TARGET_GCC_VERSION=4.9

OR

export TARGET_GCC_VERSION_EXP=4.9

If either of these didn't solve your problem, then Add the 2nd Export to your BoardConfig.mk as

TARGET_GCC_VERSION_EXP := 4.9

(Hope this works)

I presume your Toolchain Version is 4.9, since you didn't get into Custom TCs and stuff.
[Android] neonkat:
getting:

make: *** No rule to make target `/home/neonkat/xosp/out/target/product/ms013g/obj/STATIC_LIBRARIES/libinit_msm_intermediates/export_includes', needed by `/home/neonkat/xosp/out/target/product/ms013g/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.

trying to build xosp 6.3 for msm8226,i do have cyanogenmod_device_qcom_common "cm 13.0" at correct location but still getting the error.used to build well till xosp 6.2.tried removing and resyncing device/qcom/common but still the same.:(
[Android] Arvind7352:
According to this Gerrit Commit - http://review.cyanogenmod.org/#/c/144008/

libinit_msm is no longer required to build (Removed). But that change isn't updated in your ms013g-common tree

Remove this line from your msm8226-common's BoardConfigCommon.mk

I presume you're using this tree. :p

(And continue the build)
[Android] khan_frd2002:
anyone can help me with this

repo init --reference=~/roms/cm11 -u git://github.com/AOGP/android.git -b cm-11.0

so the reference flags checks the locally downloaded source and skips downloading that and symlinks the code from the existing source to the new source.

"but instead symlinks i want to copy them into the new source" is there any way to do that