Giter Site home page Giter Site logo

aceta-minophen / custombuild Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ardupilot/custombuild

0.0 1.0 0.0 262 KB

Custom build server source

License: GNU General Public License v3.0

Shell 3.88% JavaScript 36.02% Python 36.48% CSS 4.07% HTML 19.54%

custombuild's Introduction

ArduPilot Custom Firmware Builder - GSoC 2021 Project

Summary

This is a website that generates a downloadable custom ArduPilot firmware, based on user selection.
Website: https://custom.ardupilot.org
Blog post: https://discuss.ardupilot.org/t/gsoc-2021-custom-firmware-builder/74946

How to build the server locally for testing

It is expected that you have an environment where ArduPilot can be built. Otherwise, see https://ardupilot.org/dev/docs/building-setup-linux.html.

  1. Fork and Clone the ArduPilot/CustomBuild repository

  2. In the directory containg the CustomBuild repo just cloned, create a /base subdirectory and change to that directory.

  3. Clone a fork of the ArduPilot/ardupilot repository. The structure should appear similar to that below:

Directory structure

default directory structure is as follows

/home/<username>
-CustomBuild
-base
--ardupilot

Install Flask

python3 -m pip install --user -U flask

Use --basedir to adjust the base directory, the default one is base.

Running

To run, in the CustomBuild directory execute the following command:

./app.py

Once running, you will be given a link to a local host port in which the interface is displayed for the build server. It can be run at this point. Output will NOT be accessible via the interface buttons for build directory. Builds are stored in the base/builds subdirectory

For Apache web server on Ubuntu with WSGI

To create a full server with network access:

  • Install mod_wsgi for python 3:
sudo apt-get install apache2 libapache2-mod-wsgi-py3 python3 python3-pip
  • update /etc/apache2/envvars
  1. set correct username and group (default is www-data)
  2. add export PATH=/opt/gcc-arm-none-eabi-10-2020-q4-major/bin:$PATH to end of file (this is default location if you have followed the dev env setup instructions above)
  • Copy the config file to /etc/apache2/sites-available/ and specify the correct directory.

  • Edit the file as necessary for your use case

  • Enable the file:

sudo a2ensite CustomBuild.conf
  • To restart Apache:
sudo apache2ctl graceful
  • To stop Apache:
sudo apache2ctl stop
  • To start Apache:
sudo apache2ctl start

Webpage: 127.0.0.1

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.