Results 1 to 7 of 7
  1. #1
    offline Maybe Modder
    Join Date
    May 2010
    Location
    Hollywood, FL
    Posts
    46
    Thanks
    6
    Thanked 10 Times in 5 Posts
    Downloads
    27
    Uploads
    0

    Question [Problem] Env variable setup for kernel dev

    for some reason im stuck here: mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~$ export PLATFORMDIR=/home/mmdl1001/motorola-source/
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~$ cd $PLATFORMDIR
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ . build/envsetup.sh
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ lunch generic-eng
    build/target/product/sdk.mk:80: external/svox/pico/lang/PicoLangDeDeInSystem.mk: No such file or directory
    build/target/product/sdk.mk:81: external/svox/pico/lang/PicoLangEnGBInSystem.mk: No such file or directory
    build/target/product/sdk.mk:82: external/svox/pico/lang/PicoLangEnUsInSystem.mk: No such file or directory
    build/target/product/sdk.mk:83: external/svox/pico/lang/PicoLangEsEsInSystem.mk: No such file or directory
    build/target/product/sdk.mk:84: external/svox/pico/lang/PicoLangFrFrInSystem.mk: No such file or directory
    build/target/product/sdk.mk:85: external/svox/pico/lang/PicoLangItItInSystem.mk: No such file or directory
    /bin/bash: bison: command not found
    find: `frameworks/base/api': No such file or directory
    make: *** No rule to make target `external/svox/pico/lang/PicoLangItItInSystem.mk'. Stop.

    ** Don't have a product spec for: 'generic'
    ** Do you have the right repo manifest?


    What do i do?
    Phones: Motorola CLIQ Titanium [R.I.P]; HTC myTouch 4G [stock 2.3.4]
    Recovery: Clockwork 3.0.2.4

  2. #2
    adlx's Avatar
    offline Maker of adlxmod
    Join Date
    Jan 2010
    Location
    Madrid, Spain
    Posts
    1,034
    Thanks
    610
    Thanked 1,485 Times in 366 Posts
    Downloads
    30
    Uploads
    0
    hum... does the README say to lunch generic-eng?

    try:

    cd /home/mmdl1001/motorola-source/
    export PLATFORM_DIR=$PWD
    export ARCH=arm
    export CROSS_COMPILE=arm-eabi-
    export PATH=$PLATFORM_DIR/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin:$PATH
    cd $PLATFORM_DIR/kernel

    make ANDROID_BUILD_TOP=$PLATFORM_DIR V=1 -j3 &&
    make -C $PLATFORM_DIR/system/wlan/bcm/osrc/open-src/src/dhd/linux ANDROID_BUILD_TOP=$PLATFORM_DIR V=1 -j3


    (change -j3 into -jN where N is cpu cores + 1)
    Download my 1-click Recovery Flasher to flash a custom or stock recovery to your phone: Cliq, CliqXT, Backflip, ...

    Like my work? Support me: & visit my adlxmod site and follow me on Twitter
    Tambien me puedes encontrar en Movilzona (Esp)

  3. #3
    offline Maybe Modder
    Join Date
    May 2010
    Location
    Hollywood, FL
    Posts
    46
    Thanks
    6
    Thanked 10 Times in 5 Posts
    Downloads
    27
    Uploads
    0
    it does, and i'll try your codes now,

    it saids this, mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~$ cd /home/mmdl1001/motorola-source/
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ export PLATFORM_DIR=$PWD
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ export ARCH=arm
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ export CROSS_COMPILE=arm-eabi-
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ export PATH=$PLATFORM_DIR/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin:$PATH
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ cd $PLATFORM_DIR/kernel
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source/kernel$
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source/kernel$ make ANDROID_BUILD_TOP=$PLATFORM_DIR V=1 -jN &&
    > make -C $PLATFORM_DIR/system/wlan/bcm/osrc/open-src/src/dhd/linux ANDROID_BUILD_TOP=$PLATFORM_DIR V=1 -jN
    make: the `-j' option requires a positive integral argument
    Usage: make [options] [target] ...
    Options:
    -b, -m Ignored for compatibility.
    -B, --always-make Unconditionally make all targets.
    -C DIRECTORY, --directory=DIRECTORY
    Change to DIRECTORY before doing anything.
    -d Print lots of debugging information.
    --debug[=FLAGS] Print various types of debugging information.
    -e, --environment-overrides
    Environment variables override makefiles.
    -f FILE, --file=FILE, --makefile=FILE
    Read FILE as a makefile.
    -h, --help Print this message and exit.
    -i, --ignore-errors Ignore errors from commands.
    -I DIRECTORY, --include-dir=DIRECTORY
    Search DIRECTORY for included makefiles.
    -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
    -k, --keep-going Keep going when some targets can't be made.
    -l [N], --load-average[=N], --max-load[=N]
    Don't start multiple jobs unless load is below N.
    -L, --check-symlink-times Use the latest mtime between symlinks and target.
    -n, --just-print, --dry-run, --recon
    Don't actually run any commands; just print them.
    -o FILE, --old-file=FILE, --assume-old=FILE
    Consider FILE to be very old and don't remake it.
    -p, --print-data-base Print make's internal database.
    -q, --question Run no commands; exit status says if up to date.
    -r, --no-builtin-rules Disable the built-in implicit rules.
    -R, --no-builtin-variables Disable the built-in variable settings.
    -s, --silent, --quiet Don't echo commands.
    -S, --no-keep-going, --stop
    Turns off -k.
    -t, --touch Touch targets instead of remaking them.
    -v, --version Print the version number of make and exit.
    -w, --print-directory Print the current directory.
    --no-print-directory Turn off -w, even if it was turned on implicitly.
    -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
    Consider FILE to be infinitely new.
    --warn-undefined-variables Warn when an undefined variable is referenced.

    This program built for i686-pc-linux-gnu
    Report bugs to <bug-make@gnu.org>
    Last edited by mmdl1001; 04-28-2011 at 03:26 PM. Reason: Automerged Doublepost
    Phones: Motorola CLIQ Titanium [R.I.P]; HTC myTouch 4G [stock 2.3.4]
    Recovery: Clockwork 3.0.2.4

  4. #4
    adlx's Avatar
    offline Maker of adlxmod
    Join Date
    Jan 2010
    Location
    Madrid, Spain
    Posts
    1,034
    Thanks
    610
    Thanked 1,485 Times in 366 Posts
    Downloads
    30
    Uploads
    0
    don't use -jN literaly .

    If you have a single core CPU, use -j2
    If you have a dual core CPU, use -j3
    If you have a quad core CPU, use -j5
    Download my 1-click Recovery Flasher to flash a custom or stock recovery to your phone: Cliq, CliqXT, Backflip, ...

    Like my work? Support me: & visit my adlxmod site and follow me on Twitter
    Tambien me puedes encontrar en Movilzona (Esp)

  5. The Following User Says Thank You to adlx For This Useful Post:

    mmdl1001 (04-28-2011)

  6. #5
    offline Maybe Modder
    Join Date
    May 2010
    Location
    Hollywood, FL
    Posts
    46
    Thanks
    6
    Thanked 10 Times in 5 Posts
    Downloads
    27
    Uploads
    0
    how many does the cliq have? 2?
    Phones: Motorola CLIQ Titanium [R.I.P]; HTC myTouch 4G [stock 2.3.4]
    Recovery: Clockwork 3.0.2.4

  7. #6
    phoenixsong6's Avatar
    offline Moderator
    Join Date
    Dec 2010
    Location
    Seattle
    Posts
    731
    Thanks
    44
    Thanked 272 Times in 200 Posts
    Downloads
    17
    Uploads
    0
    He is referring to the number of cores the compiling computer has. (The one you are building the system on)

  8. The Following User Says Thank You to phoenixsong6 For This Useful Post:

    mmdl1001 (04-28-2011)

  9. #7
    offline Maybe Modder
    Join Date
    May 2010
    Location
    Hollywood, FL
    Posts
    46
    Thanks
    6
    Thanked 10 Times in 5 Posts
    Downloads
    27
    Uploads
    0
    oh, thank you [MENTION=3234618]phoenixsong6[/MENTION], 2 it is then lol:)

    [MENTION=3081367]adlx[/MENTION] it states:

    code:
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ cd /home/mmdl1001/motorola-source/
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ export PLATFORM_DIR=$PWD
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ export ARCH=arm
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ export CROSS_COMPILE=arm-eabi-
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ export PATH=$PLATFORM_DIR/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin:$PATH
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source$ cd $PLATFORM_DIR/kernel
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source/kernel$
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source/kernel$
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source/kernel$
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source/kernel$ make ANDROID_BUILD_TOP=$PLATFORM_DIR V=1 -j2 &&
    >
    > make -C $PLATFORM_DIR/system/wlan/bcm/osrc/open-src/src/dhd/linux ANDROID_BUILD_TOP=$PLATFORM_DIR V=1 -j2
    make -f /home/mmdl1001/motorola-source/kernel/Makefile silentoldconfig
    make -f scripts/Makefile.build obj=scripts/basic
    gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep scripts/basic/fixdep.c
    scripts/basic/fixdep.c: In function ‘traps’:
    scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules
    scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules
    gcc -Wp,-MD,scripts/basic/.docproc.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/docproc scripts/basic/docproc.c
    gcc -Wp,-MD,scripts/basic/.hash.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/hash scripts/basic/hash.c
    mkdir -p include/linux include/config
    make -f scripts/Makefile.build obj=scripts/kconfig silentoldconfig
    gcc -Wp,-MD,scripts/kconfig/.conf.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<curses.h>" -DLOCALE -c -o scripts/kconfig/conf.o scripts/kconfig/conf.c
    scripts/kconfig/conf.c: In function ‘conf_askvalue’:
    scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
    scripts/kconfig/conf.c: In function ‘conf_choice’:
    scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
    gcc -Wp,-MD,scripts/kconfig/.kxgettext.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<curses.h>" -DLOCALE -c -o scripts/kconfig/kxgettext.o scripts/kconfig/kxgettext.c
    cat scripts/kconfig/zconf.tab.c_shipped > scripts/kconfig/zconf.tab.c
    cat scripts/kconfig/lex.zconf.c_shipped > scripts/kconfig/lex.zconf.c
    cat scripts/kconfig/zconf.hash.c_shipped > scripts/kconfig/zconf.hash.c
    gcc -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -DCURSES_LOC="<curses.h>" -DLOCALE -Iscripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c
    gcc -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.o
    scripts/kconfig/conf -s arch/arm/Kconfig
    arch/arm/plat-omap/Kconfig:204:warning: leading whitespace ignored
    arch/arm/mach-msm/Kconfig:102:warning: prompt redefined
    ***
    *** You have not yet configured your kernel!
    *** (missing kernel .config file)
    ***
    *** Please run some configurator (e.g. "make oldconfig" or
    *** "make menuconfig" or "make xconfig").
    ***
    make[2]: *** [silentoldconfig] Error 1
    make[1]: *** [silentoldconfig] Error 2
    set -e; : ' CHK include/linux/version.h'; mkdir -p include/linux/; (echo \#define LINUX_VERSION_CODE 132637; echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';) < /home/mmdl1001/motorola-source/kernel/Makefile > include/linux/version.h.tmp; if [ -r include/linux/version.h ] && cmp -s include/linux/version.h include/linux/version.h.tmp; then rm -f include/linux/version.h.tmp; else : ' UPD include/linux/version.h'; mv -f include/linux/version.h.tmp include/linux/version.h; fi
    make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
    make: *** Waiting for unfinished jobs....
    mmdl1001[MENTION=3114853]mmdl1001[/MENTION]-AOA150:~/motorola-source/kernel$
    Last edited by mmdl1001; 04-28-2011 at 11:36 PM. Reason: Automerged Doublepost
    Phones: Motorola CLIQ Titanium [R.I.P]; HTC myTouch 4G [stock 2.3.4]
    Recovery: Clockwork 3.0.2.4

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •