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

build instructions are not clear #14

Open
sleep-walker opened this issue Dec 20, 2017 · 6 comments
Open

build instructions are not clear #14

sleep-walker opened this issue Dec 20, 2017 · 6 comments

Comments

@sleep-walker
Copy link

Build instructions are not clear, especially the relation between this GIT repository and rest in the description.

 * repo init -u git://github.com/LineageOS/android.git -b cm-14.1
 * repo sync --force-sync 
 * . build/envsetup.sh
 * brunch lineage_krillin-userdebug

Following the howto ends with last command like this:

 $ brunch lineage_krillin-userdebug
including vendor/cm/vendorsetup.sh
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_krillin". Konec.
Device krillin not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
Repository for krillin not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_krillin". Konec.
build/core/product_config.mk:249: *** Can not locate config makefile for product "lineage_krillin". Konec.

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

No such item in brunch menu. Try 'breakfast'

As this is the information which is hard to find - could anyone improve it? Or provide me hint and I'll improve it myself.

@manjotsidhu
Copy link

There is a mistake ... It is :

brunch krillin

@MagnusAlm
Copy link

Putting a copy of the updated instructions here, easier to find here

'#' Updated* (instructions taken from https://github.com/Pablito2020/pablito-scripts mm.sh and install-everything.sh the guide was there all along ;-))

'#' For building 13.0 on Ubuntu 17.10
'#' For building 14.1 replace 13.0 with 14.1
'#' Install libraries needed for compiling

sudo apt-get install -y git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng maven

sudo apt update
sudo apt upgrade -y
sudo apt-get install -y openjdk-8-jdk

mkdir lineage13.0
cd lineage13.0

# Check if the repo tool is installed, if it isn't installed then install it.
if ! [ -f /bin/repo ]; then
mkdir ~/bin
PATH=~/bin:$PATH
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod 760 ~/bin/repo
fi

'#' if building 14.1 you must add a user name and email berfore "repo init", not needed on 13.0.
git config --global user.email "Your email @ here"
git config --global user.name "Your name here"

repo init -u git://github.com/LineageOS/android.git -b cm-13.0
repo sync --force-sync

git clone https://github.com/Pablito2020/android_device_bq_krillin.git -b cm-13.0 device/bq/krillin
git clone https://github.com/Pablito2020/android_kernel_bq_krillin.git -b cm-13.0 kernel/bq/krillin
git clone https://github.com/Pablito2020/android_vendor_bq_krillin.git -b cm-13.0 vendor/bq/krillin
git clone https://github.com/LineageOS/android_external_stlport.git -b cm-13.0 external/stlport

'#' I you need "su" on 13.0, edit "device/bq/krillin/device.mk" and add at the end:

# Superuser
WITH_SU := true

'#' The minimum change to make 14.1 build, is to remove the following line from "device/bq/krillin/Boardconfig.mk"

BOARD_WLAN_DEVICE := MediaTek

'#' Start build

. build/envsetup.sh
brunch lineage_krillin-userdebug

@tc-gd
Copy link

tc-gd commented Jan 22, 2018

Nice catch! And thanks for the su! I was curious where to find possible choices for new ROM, this can help me further.

Btw. do you put fixes you make or find in your forks?

@MagnusAlm
Copy link

@tc-gd Yeah, I will try to do that once I've figured out how.

@yt2000channel
Copy link

Putting a copy of the updated instructions here, easier to find here

'#' Updated* (instructions taken from https://github.com/Pablito2020/pablito-scripts mm.sh and install-everything.sh the guide was there all along ;-))

'#' For building 13.0 on Ubuntu 17.10 '#' For building 14.1 replace 13.0 with 14.1 '#' Install libraries needed for compiling

sudo apt-get install -y git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng maven

sudo apt update sudo apt upgrade -y sudo apt-get install -y openjdk-8-jdk

mkdir lineage13.0 cd lineage13.0

# Check if the repo tool is installed, if it isn't installed then install it. if ! [ -f /bin/repo ]; then mkdir ~/bin PATH=~/bin:$PATH curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo chmod 760 ~/bin/repo fi

'#' if building 14.1 you must add a user name and email berfore "repo init", not needed on 13.0. git config --global user.email "Your email @ here" git config --global user.name "Your name here"

repo init -u git://github.com/LineageOS/android.git -b cm-13.0 repo sync --force-sync

git clone https://github.com/Pablito2020/android_device_bq_krillin.git -b cm-13.0 device/bq/krillin git clone https://github.com/Pablito2020/android_kernel_bq_krillin.git -b cm-13.0 kernel/bq/krillin git clone https://github.com/Pablito2020/android_vendor_bq_krillin.git -b cm-13.0 vendor/bq/krillin git clone https://github.com/LineageOS/android_external_stlport.git -b cm-13.0 external/stlport

'#' I you need "su" on 13.0, edit "device/bq/krillin/device.mk" and add at the end:

# Superuser WITH_SU := true

'#' The minimum change to make 14.1 build, is to remove the following line from "device/bq/krillin/Boardconfig.mk"

BOARD_WLAN_DEVICE := MediaTek

'#' Start build

. build/envsetup.sh brunch lineage_krillin-userdebug

Hey, I am getting this problem for Redmi Note 3 Kenzo After initiating breakfast kenzo...What can I do now???

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

How to fix this problem????

@MagnusAlm
Copy link

If you are trying to build on Lineage 13.0 it makes sense that you get that error message, according to:
https://wiki.lineageos.org/devices/kenzo/
It has only support for Lineage 14.1.
Try this instruction instead:
https://wiki.lineageos.org/devices/kenzo/build/

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

5 participants