[XPERIA X8 General] jackq:
Hi, i want to make ROM for i9100 using miui jb patchrom based on stock JB sammy ROM.

I prepared everything according instructions:

-downloaded SDK and set the PATH to the tools and platform-tools

-installed git and repo

I created the folder in the home/MiCode/PatchROM and downloaded the repo & sync patchrom.git jellybean- about 4GB of data and it looks like he is whole,

-Created a folder 9100 in PatchROM (because i want to do for i9100), and threw to it decompiled apps and jars: android.policy.jar.out framework.jar.out framweork2.jar.out framework-res.apk services.jar.out Systemui.apk ( all are properly decompiled).

-To the same folder (9100) threw ROM - that is, the base LSN - ROM.zip

I modified a little makefile - I took it from patchrom/i9100/

here it is:

#
# Makefile for i9100
#
PORT_BUILD =/home/jack/MiCode/PatchROM/build

PORT_ROOT =/home/jack/MiCode/PatchROM

# The original zip file, MUST be specified by each product
local-zip-file: = ROM.zip

# The output zip file of MIUI rom, the default is porting_miui.zip if not specified
local-out-zip-file: = MIUI_i9100.zip

# The location for local-gold to save target-file
local-previous-target-dir: = ~ / workspace/ota_base/i9100_4.1

# All apps from original zip, but has smali files chanded
local-modified-apps: = LogsProvider SecPhone SecMediaProvider SecSettings

local-modified-jars: =

# All APKs from MIUI
local-MIUI-removed-apps: = MediaProvider Stk

local-MIUI-modified-apps: = MiuiHome Mms Phone Settings ThemeManager MiuiSystemUI

# Config density for co-developers to use the AAPS with hdpi or XHDPI resource,
# Default configrations are hdpi for ics branch and XHDPI for jelly branch
local-density: = hdpi

include phoneapps.mk

# This include the local targets before and after the final zip zip file,
# And the local-targets Should:
# (1) be defined after Including porting.mk if using any global variable (see porting.mk)
# (2) the name Should be leaded with local-to Prevent any conflict with global targets
local-pre-zip: = local-pre-zip-misc
local-after-zip: = local-put-the-phone

# The local targets after the zip file is generated, could include 'zip2sd' to
# Deliver the zip file to phone, or to customize other actions

include $ (PORT_BUILD) / porting.mk

# This define any local-target
updater: = $ (ZIP_DIR) / META-INF/com/google/android/updater-script
pre_install_data_packages: = $ (tmp_dir) / pre_install_apk_pkgname.txt
local-pre-zip-misc:
cp other / spn-conf.xml $ (ZIP_DIR) / system / etc / spn-conf.xml
cp other / build.prop $ (ZIP_DIR) / system / build.prop
# Cp stockrom/system/app/FFFFFFFF000000000000000000000001.drbin $ (ZIP_DIR) / system / app
# Cp-r stockrom / system / app / mcRegistry $ (ZIP_DIR) / system / app
rm-rf $ (ZIP_DIR) / system / csc
rm-rf $ (pre_install_data_packages)
for apk in $ (ZIP_DIR) / data / media / preinstall_apps / *. apk, the \
$ (AAPT) d - values ​​resources $ $ apk | grep 'id = 127 packageCount' | sed-e 's / ^. * Name = / / ">> $ (pre_install_data_packages) \
done
more $ (pre_install_data_packages) | wc-l> $ (ZIP_DIR) / system / etc / enforcecopyinglibpackages.txt
more $ (pre_install_data_packages) >> $ (ZIP_DIR) / system / etc / enforcecopyinglibpackages.txt

out/framework2.jar: out / framework.jar

%. Phone: out /%. Jar
@ Echo push - a phone ---
adb remount
adb push $ </ system / framework
adb shell chmod 644 / system / framework / $ *. jar
# Adb shell stop
# Adb shell start
# Adb reboot

%. Sign-platform: out /%
#%. Sign-platform: / home / gexudong / libra.jbmiui / out / target / product / maguro / system / app /%
java-jar $ (TOOL_DIR) / signapk.jar $ (PORT_ROOT) / build/security/platform.x509.pem $ (PORT_ROOT) / build/security/platform.pk8 $ <$ <. signed
@ Echo push - a phone ---
adb remount
adb push $ <. signed / system / app / $ *
adb shell chmod 644 / system / app / $ *

Then I start the console, type a source build/envsetup.sh -p i9100

pops up:

jack@ubuntu: ~/MiCode/PatchROM $ source build/envsetup.sh -p i9100
PORT_ROOT = /home/jack/ MiCode/PatchROM
ANDROID_TOP =
ANDROID_OUT =
PORT_PRODUCT = i9100
USE_ANDROID_OUT =
ANDROID_BRANCH =

then i type cd 9100 (its folder with decompiled apps, jars and ROM.zip)

then type make fullota

and get:

jack@ubuntu: ~ / MiCode / PatchROM $ cd 9100
jack @ ubuntu: ~ / MiCode/PatchROM/9100 $ make fullota
make: bin/bash: command not found
/ home / jack / MiCode / PatchROM / build / porting.mk: 310: warning: command covering for target `out /-tozip '
/ home / jack / MiCode / PatchROM / build / porting.mk: 310: warning: ignoring old commands for target `out /-tozip '
and a lot of the same errors

obviously i check and have installed make, bash and i think everything its needed. And I spread my hands.

Can someone please help me some idea what I'm doing wrong.

Thanks a lot in advance.