Skip to content

MakOS-TEAM/platform_manifest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 

Repository files navigation

MakOS

Blazing fast, Rock-Hard stability.

Getting Started

To get started with the Makos sources, you'll need to get familiar with Git and Repo.

Create the Directories

You will need to set up some directories in your build environment.

To create them run:

mkdir -p ~/bin
mkdir -p ~/makos

Install the Repository

Enter the following to download the "repo" binary and make it executable:

curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo

You may need to reboot for these changes to take effect. Now enter the following to initialize the repository:

cd ~/makos

Initializing the MakOS Source:

For initializing repo use:

repo init -u https://github.com/MakOS-TEAM/platform_manifest.git -b n-oms

Syncing repo:

repo sync -j2 | -j4 |-j8 | -j32 (# of CPUs x2)

Compiling MakOS

Set up environment:

. build/envsetup.sh

If your device is officially supported by MakOS, you can do now:

breakfast <device_codename>

...to automatically pull all missing repositories. Then:

brunch <device_codename>

...to start compilation process.

Adding support for new device

If you want to be official maintainer and add MakOS support for a new device you have to create these two files in device tree:

makos.mk sample

# Inherit from those products. Most specific first.
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) -- only for 64bit phones
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)

# Inherit from device
$(call inherit-product, device/<path>/device.mk) -- path to main device makefile

# Inherit common product files.
$(call inherit-product, vendor/makos/config/common_full_phone.mk)

# Set those variables here to overwrite the inherited values.
BOARD_VENDOR := 
PRODUCT_BRAND := 
PRODUCT_DEVICE := 
PRODUCT_NAME := makos_device
PRODUCT_MANUFACTURER := 
PRODUCT_MODEL := 
TARGET_VENDOR := 

# Root options (root apps = substratum, adaway, kernel adiutor)
WITH_SUPERSU := true -- if you want to ship SuperSU (rooted rom, with su, supersu and root apps)
WITHOUT_SU := true -- if you don't want su and root apps (unrooted rom, without su and root apps)
# by default su and root apps are being compiled

# Use the latest approved GMS identifiers unless running a signed build
ifneq ($(SIGN_BUILD),true)
PRODUCT_BUILD_PROP_OVERRIDES += \
    BUILD_FINGERPRINT=specific for your device \
    PRIVATE_BUILD_DESC="specific for your device"
endif

Also you need to specify which camera app you want to use with:

# Camera
PRODUCT_PACKAGES += \
  Camera2 \
  Snap

in one of your device's makefiles. Using the example above will give you both cameras installed.

makos.dependencies sample

[
  {
    "repository": "MakOS-TEAM/android_kernel_<name>",
    "target_path": "kernel/path",
    "branch": "n"
  },
  {
    "repository": "MakOS-TEAM/proprietary_vendor_<name>",
    "target_path": "vendor/path",
    "branch": "n"
  },
  {
    "repository": "LineageOS/android_device_<name>", -- if you need to use repos from another source
    "target_path": "device/path",
    "branch": "cm-14.1" -- you can also change the branch
  }
]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published