Git Product home page Git Product logo

module-sdk-gen's Introduction

ARTist-SDK

The ARTist let's you build modules for ARTist without needing to download and set up AOSP. The SDK contains everything that's needed to build a module from your source code.

Fetching from AOSP

This repo uses the src/fetch.sh bash script to pull out the needed files from an AOSP build server. We assume you have a fully built version of AOSP available to pull the files from.

To use the bash script we need to create a config file ~/.artist-sdk/ssh-config. It looks like this:

ssh_identity="identity"
aosp_root_path="~/aosp_root_dir/"

The ssh-identity refers to your .ssh/config file and aosp_root_path to your AOSP directory on your build server. If you need to setup your .ssh/config file look into the man pages.

We recommend to use the corresponding make target:

make fetch

Building the SDK

The SDK is a collection of all the files pulled from AOSP via make fetch. We currently support three output formats: .deb and .rpm packages that can be installed on the corresponding linux systems and a zip file that, when extracted, contains an install script that takes care of moving the SDK to the correct location.

Build sdk.zip

  1. make zip

Build Debian package (.deb)

  1. sudo apt-get install build-essential debhelper
  2. make deb
  3. sudo dpkg -i releases/artist-sdk_w.x.y-z_amd64.deb (install sdk [optional])

Build Fedora/CentOS package (.rpm)

  1. sudo dnf install rpm-build
  2. make rpm
  3. sudo dnf install releases/artist-sdk-w.x.y-z.fcxx.x86_64.rpm (install sdk [optional])

module-sdk-gen's People

Contributors

partipan-dot avatar schrnz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

module-sdk-gen's Issues

Enforce custom `rpmbuild` build dir

The following error is generated for
make rpm

$ make rpm
mkdir -p rpmbuild/SOURCES/artist-sdk-0.0.1
cd src && cp -r include toolchain makefiles LICENSE Makefile ../rpmbuild/SOURCES/artist-sdk-0.0.1/
cd rpmbuild/SOURCES && tar -zcf artist-sdk-0.0.1.tar.gz artist-sdk-0.0.1 && rm -r artist-sdk-0.0.1
rpmbuild -bb rpmbuild/SPECS/artist-sdk.spec
error: File /home/<username>/rpmbuild/SOURCES/artist-sdk-0.0.1.tar.gz: No such file or directory

It seems rpmbuild is by default assuming that the rpmbuild working dir is the home folder. In theory it should be possible to change this locally (blog entry), but the proposed fix did not work when I tried it.

Symlinking ~/rmpbuild to point to module-sdk-gen/rpmbuild is a workaround that works for now, so the issue is low priority, but it would still be nice to have this solved in the Makescript itself.

Building Description

When trying to build a Debian Package using make deb it wasn't working as i had to call make fetch first. I guess the description in the README or the Makefile should be updated.

Also when building the deb file i get the error:
"mv: das Verschieben von 'debian/artist-sdk_0.0.1-1_amd64.deb' nach 'releases/' ist nicht möglich: Ist kein Verzeichnis" as the script didn't create the release folder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.