Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make config-galaxy-s2 cp fails #247

Open
mikeaich opened this issue Mar 27, 2012 · 2 comments
Open

make config-galaxy-s2 cp fails #247

mikeaich opened this issue Mar 27, 2012 · 2 comments

Comments

@mikeaich
Copy link
Contributor

With a recent 'make sync', I started seeing the following error on a clean build when running the 'make config-galaxy-s2' step:

cp: cannot create regular file `../../../vendor/samsung/c1-common/proprietary/etc/mdnie_tune_bypass_mode': No such file or directory

I tracked it down to copy_file() in .../gonk/device/samsung/galaxys2/extract-files.sh.

Fix:

diff --git a/extract-files.sh b/extract-files.sh
index 5f6cc0b..69e01af 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -132,14 +132,18 @@ EOF
 # $4 = directory name in $PROPRIETARY_COMMON_DIR
 copy_file()
 {
-    echo Pulling \"$1\"
     if [[ -z "${ANDROIDFS_DIR}" ]]; then
+           echo Pulling \"$1\"
         adb pull /$3/$1 $PROPRIETARY_COMMON_DIR/$4/$2
     else
            # Hint: Uncomment the next line to populate a fresh ANDROIDFS_DIR
            #       (TODO: Make this a command-line option or something.)
            # adb pull /$3/$1 ${ANDROIDFS_DIR}/$3/$1
-        cp ${ANDROIDFS_DIR}/$3/$1 $PROPRIETARY_COMMON_DIR/$4/$2
+               echo Copying \"$1\"
+               local TARGET=$PROPRIETARY_COMMON_DIR/$4/$2
+               local TARGET_DIR=$(dirname "$TARGET")
+               mkdir -p $TARGET_DIR
+        cp ${ANDROIDFS_DIR}/$3/$1 $TARGET
     fi

     if [[ -f $PROPRIETARY_COMMON_DIR/$4/$2 ]]; then
@arky
Copy link
Contributor

arky commented Mar 28, 2012

Workaround:
mkdir glue/gonk/vendor/samsung/c1-common/proprietary/etc

#249 (comment)

@mikeaich
Copy link
Contributor Author

Yeah--I've got a pull-req waiting on a fix: joneschrisg/android_device_samsung_galaxys2#24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants