Giter Club home page Giter Club logo

buildenvironmentatcmithermometer's Introduction

Build environment setup for ATC_MiThermometer

This is a tc32_gcc custom tailored build environment for https://github.com/atc1441/ATC_MiThermometer according to referenced instructions there for linux but in a docker container.

It shall work on both Linux and macOS with following dependencies installed:

  • curl
  • docker
  • git
  • sed

00_bootstrap.sh does only need to be run once which does multiple things

Afterwards you can simply use 01_make.sh to compile ATC_MiThermometer. If you want you can also add parameter like "./01_make.sh clean" to it.

There is also 02_tc32_shell.sh which opens the docker container build environment as a shell.

Please note, that UID and GID of the docker build can be altered as parameter, default is 1000:1000. The build environment itself is generic, so you also might want to check out your own project besides ATC_MiThermometer and use it with adapted path in make command.

buildenvironmentatcmithermometer's People

Contributors

almightyfrog avatar hosek avatar martonmiklos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

buildenvironmentatcmithermometer's Issues

Issues running 01_make.sh

Hi there;
I am trying to follow your instructions to compile the firmware in my linux machine, and I am encountering the following.
I run 00_bootstrap.sh without issues; but when I try to run the 01_make.sh script I get the following:

precious@BaCKuPS:/tmp/BuildEnvironmentATCMiThermometer$ ./01_make.sh
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
precious@BaCKuPS:/tmp/BuildEnvironmentATCMiThermometer$ sudo !!
sudo ./01_make.sh
Unable to find image 'tc32:latest' locally
docker: Error response from daemon: pull access denied for tc32, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
precious@BaCKuPS:/tmp/BuildEnvironmentATCMiThermometer$ docker --version
Docker version 19.03.13, build 4484c46d9d

I am running a headless Ubuntu server with Docker freshly installed.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

I am quite new to docker, so perhaps that it the problem and I am missing something obvious.
Any help will be much appreciated :)

Make this a bit more git friendly

Hi folks!

This patch/hack makes the project handling with git a bit cumbersome:

sed -i "/TEL_PATH := ..\/../c TEL_PATH := ..\/../SDK\/" ATC_MiThermometer/ATC_Thermometer/makefile

My suggestion would be the following:
Cretate a separate mk file which:

  • Would be patched/adjusted/generated by this tool
  • Would be included by the makefile if exists (if not exists the standard TEL_PATH := ../.. would be used by the makefile)
  • Add that mk file to the .gitignore in the thermometer project

This way I would need to alter back and forth the makefile before git commit.

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.