Migrate Android source to case sensitive

I downloaded the Android source code to my Mac. When I went to build, I received the following message:

$ make -j4
Checking build tool versions ...
build / core / main.mk: 90: ****************************** *********** *********************
build / core / main.mk: 91: you are building a file system case insensitive.
build / core / main.mk: 92: Please move the source tree to the case-sensitive file system.
build / core / main.mk: 93: ***************************************** *********************
build / core / main.mk: 94: *** Case-insensitive file systems are not supported. Stop.

Then I realized that I had missed creating a case-sensitive image. So I created a new one, as mentioned in http://source.android.com/source/initializing.html , for example:

hdiutil create -type SPARSE -fs "Case-sensitive Journaled HFS +" -size 40g ~ / android.dmg

... but I can’t create any folder in it, she says:

mkdir android
mkdir: android: read-only file system

How do I transfer the Android source code that was downloaded on my Mac OS to a case-sensitive newly created image?

+5
source share
2 answers

I met the same problem. I found that if you use sudo, the problem will go away.

# Google:

# hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg

function mountAndroid { hdiutil attach ~/android.dmg -mountpoint /Volumes/android; }

, sudo:

sudo hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg
sudo hdiutil attach ~/android.dmg -mountpoint /Volumes/android
+5

:

hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 40g ~/android.dmg

. , :

hdiutil convert ~/android.dmg.sparsefile -format UDRW -o ~/android.dmg

, , OSX.

+1

All Articles