[Android] rascarlo:
Hello

i've built AOSP from source with no issues for my Maguro. bumped all the proprietary binaries for GPS, BlueTooth, Camera. Everything is working but i am having trouble to add su and busybox.

this is what i am doing in order to add su and busybox

1. git cloned SuperUser in $TOP

git clone git://github.com/ChainsDD/Superuser.git packages/apps/Superuser

2. copied su and busybox binaries from apex ROM and put them in $TOP/device/samsung/maguro/prebuilt/xbin

3. edited $TOP/device/samsung/maguro/full_maguro.mk

rascarlo@nyabinghi:~$ cat $TOP/device/samsung/maguro/full_maguro.mk
# Copyright (C) 2011 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#
# This file is the build configuration for a full Android
# build for maguro hardware. This cleanly combines a set of
# device-specific aspects (drivers) with a device-agnostic
# product configuration (apps). Except for a few implementation
# details, it only fundamentally contains two inherit-product
# lines, full and maguro, hence its name.
#

# Get the long list of APNs
PRODUCT_COPY_FILES := device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml

# Camera
PRODUCT_PACKAGES := \
Camera

# Tell compiler where our prebuilt folder is
DEVICE_PREBUILT := device/samsung/maguro/prebuilt

# Tell compiler to build Superuser.apk
PRODUCT_PACKAGES := \
Superuser

# Include busybox and su binaries
PRODUCT_COPY_FILES += \
$(DEVICE_PREBUILT)/xbin/busybox:system/xbin/busybox \
$(DEVICE_PREBUILT)/xbin/su:system/xbin/su

# This is a script to automatically symlink busybox and su binaries on boot (the code for 91-busybox_linkage.sh is below)
PRODUCT_COPY_FILES += \
$(DEVICE_PREBUILT)/etc/init.d/91-busybox_linkage.sh:system/etc/inti.d/91-busybox_linkage.sh

# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# This is where we'd set a backup provider if we had one
#$(call inherit-product, device/sample/products/backup_overlay.mk)
# Inherit from maguro device
$(call inherit-product, device/samsung/maguro/device.mk)

# Set those variables here to overwrite the inherited values.
PRODUCT_NAME := full_maguro
PRODUCT_DEVICE := maguro
PRODUCT_BRAND := Android
PRODUCT_MODEL := Full AOSP on Maguro

4. created 91-busybox_linkage.sh in $TOP/device/samsung/maguro/prebuilt/etc/init.d

rascarlo@nyabinghi:~$ cat $TOP/device/samsung/maguro/prebuilt/etc/init.d/91-busybox_linkage.sh
for cmd in $(busybox --list);do ln -s /system/xbin/$cmd $cmd; done; ln -s /system/xbin/su su;

5. set permissions for 91-busybix_linkage.sh

rascarlo@nyabinghi:~/myAOSP/device/samsung/maguro/prebuilt/etc/init.d$ ls -l
total 4 -rwxrwxrwx 1 rascarlo rascarlo 94 2012-02-14 13:52 91-busybox_linkage.sh

6. added https://github.com/C...eruser.x509.pem and https://github.com/C...y/superuser.pk8 in $TOP/build/target/product/security

then i make installclean, make clean, make clobber and then i run make otapackage -j8

but it won't build. i get this as last line in terminal:

'out/target/common/obj/APPS/Settings_intermediates/classes.dex' as 'classes.dex'...
rascarlo@nyabinghi:~/myAOSP$

and scrolling up in terminal i see this error :

make: *** [out/target/product/maguro/obj/APPS/Superuser_intermediates/package.apk] Error 1

where am i wrong?

can anybody help?

thank you