Browse Source

Merge pull request #3803 from jbrazio/feature/buildroot-cleanup

Buildroot cleanup
Scott Lahteine 9 years ago
parent
commit
319d184999

+ 5
- 4
.travis.yml View File

@@ -3,10 +3,7 @@ language: c
3 3
   #
4 4
 before_install:
5 5
   #
6
-  # Travis runs a detached head. We need to find the current branch
7
-  - git checkout `git branch --contains HEAD | grep -v '*'`
8
-  #
9
-  # Also tags for the root(s) of the minor version(s)
6
+  # Fetch the tag information for the current branch
10 7
   - git fetch origin --tags
11 8
   #
12 9
   # Publish the buildroot script folder
@@ -50,6 +47,10 @@ before_script:
50 47
   # Change current working directory to the build dir
51 48
   - cd ${TRAVIS_BUILD_DIR}
52 49
   #
50
+  # Generate custom version include
51
+  - generate_version_header_for_marlin ${TRAVIS_BUILD_DIR}/Marlin
52
+  - cat ${TRAVIS_BUILD_DIR}/Marlin/_Version.h
53
+  #
53 54
 script:
54 55
   #
55 56
   # Backup Configuration.h, Configuration_adv.h, and pins_RAMPS_14.h

+ 9
- 12
README.md View File

@@ -1,6 +1,12 @@
1 1
 # Marlin 3D Printer Firmware
2
-<img align="top" width=175 src="Documentation/Logo/Marlin%20Logo%20GitHub.png" />
3
- Additional documentation can be found in [The Marlin Wiki](https://github.com/MarlinFirmware/Marlin/wiki).
2
+
3
+[![Build Status](https://travis-ci.org/MarlinFirmware/Marlin.svg?branch=RCBugFix)](https://travis-ci.org/MarlinFirmware/Marlin)
4
+[![Coverity Scan Build Status](https://scan.coverity.com/projects/2224/badge.svg)](https://scan.coverity.com/projects/2224)
5
+
6
+<img align="top" width=175 src="buildroot/share/pixmaps/logo/Marlin%20Logo%20GitHub.png" />
7
+
8
+Additional documentation can be found in [The Marlin Wiki](https://github.com/MarlinFirmware/Marlin/wiki).
9
+Please test this firmware and inform us if it misbehaves in any way, volunteers are standing by!
4 10
 
5 11
 ## Release Candidate -- Marlin 1.1.0-RCBugFix - 27 April 2016
6 12
 
@@ -58,14 +64,7 @@ Proposed patches should be submitted as a Pull Request against the [RCBugFix](ht
58 64
 - Do submit questions and concerns. The "naive" question is often the one we forget to ask.
59 65
 - Follow the proper coding style. Pull requests with styling errors will be delayed. See our [Coding Standards](https://github.com/MarlinFirmware/Marlin/wiki/DNE-Coding-Standards) page for more information.
60 66
 
61
-## Current Status: Testing
62
-
63
-Please test this firmware and inform us if it misbehaves in any way. Volunteers are standing by!
64
-
65
-[![Coverity Scan Build Status](https://scan.coverity.com/projects/2224/badge.svg)](https://scan.coverity.com/projects/2224)
66
-[![Travis Build Status](https://travis-ci.org/MarlinFirmware/MarlinDev.svg)](https://travis-ci.org/MarlinFirmware/MarlinDev)
67
-
68
-##### [RepRap.org Wiki Page](http://reprap.org/wiki/Marlin)
67
+### [RepRap.org Wiki Page](http://reprap.org/wiki/Marlin)
69 68
 
70 69
 ## Credits
71 70
 
@@ -95,5 +94,3 @@ More features have been added by:
95 94
 Marlin is published under the [GPL license](/LICENSE) because we believe in open development. The GPL comes with both rights and obligations. Whether you use Marlin firmware as the driver for your open or closed-source product, you must keep Marlin open, and you must provide your compatible Marlin source code to end users upon request. The most straightforward way to comply with the Marlin license is to make a fork of Marlin on Github, perform your modifications, and direct users to your modified fork.
96 95
 
97 96
 While we can't prevent the use of this code in products (3D printers, CNC, etc.) that are closed source or crippled by a patent, we would prefer that you choose another firmware or, better yet, make your own.
98
-
99
-[![Flattr this git repo](http://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=ErikZalm&url=https://github.com/MarlinFirmware/Marlin&title=Marlin&language=&tags=github&category=software)

+ 0
- 0
buildroot/bin/build_marlin View File


+ 12
- 9
buildroot/bin/generate_version_header_for_marlin View File

@@ -1,8 +1,7 @@
1 1
 #!/usr/bin/env bash
2 2
 # generate_version_header_for_marlin
3 3
 
4
-DIR="$1"
5
-OUTFILE="$2"
4
+DIR="${1}"
6 5
 
7 6
 BUILDATE=$(date '+%s')
8 7
 DISTDATE=$(date '+%Y-%m-%d %H:%M')
@@ -10,16 +9,17 @@ DISTDATE=$(date '+%Y-%m-%d %H:%M')
10 9
 BRANCH=$(git -C "${DIR}" symbolic-ref -q --short HEAD)
11 10
 VERSION=$(git -C "${DIR}" describe --tags --first-parent 2>/dev/null)
12 11
 
13
-# Voodoo version tag generator
12
+if [ -z "${BRANCH}" ]; then
13
+  BRANCH=$(echo "${TRAVIS_BRANCH}")
14
+fi
15
+
14 16
 if [ -z "${VERSION}" ]; then
15 17
   VERSION=$(git -C "${DIR}" describe --tags --first-parent --always 2>/dev/null)
16
-  SHORT_BUILD_VERSION=$(echo "${VERSION}" | sed "s/-.*/${BRANCH}/")
17
-  DETAILED_BUILD_VERSION=$(echo "${VERSION}" | sed "s/-/${BRANCH}-/")
18
-else
19
-  SHORT_BUILD_VERSION=$(echo "${BRANCH}")
20
-  DETAILED_BUILD_VERSION=$(echo "${BRANCH}-${VERSION}")
21 18
 fi
22 19
 
20
+SHORT_BUILD_VERSION=$(echo "${BRANCH}")
21
+DETAILED_BUILD_VERSION=$(echo "${BRANCH}-${VERSION}")
22
+
23 23
 # Gets some misc options from their defaults
24 24
 DEFAULT_MACHINE_UUID=$(awk -F'"' \
25 25
   '/#define DEFAULT_MACHINE_UUID/{ print $2 }' < "${DIR}/Version.h")
@@ -32,10 +32,13 @@ SOURCE_CODE_URL=$(awk -F'"' \
32 32
 WEBSITE_URL=$(awk -F'"' \
33 33
   '/#define WEBSITE_URL/{ print $2 }' < "${DIR}/Version.h")
34 34
 
35
-cat > "$OUTFILE" <<EOF
35
+cat > "${DIR}/_Version.h" <<EOF
36 36
 /**
37 37
  * THIS FILE IS AUTOMATICALLY GENERATED DO NOT MANUALLY EDIT IT.
38 38
  * IT DOES NOT GET COMMITTED TO THE REPOSITORY.
39
+ *
40
+ * Branch: ${BRANCH}
41
+ * Version: ${VERSION}
39 42
  */
40 43
 
41 44
 #define BUILD_UNIX_DATETIME "${BUILDATE}"

+ 0
- 0
buildroot/bin/opt_disable View File


+ 0
- 0
buildroot/bin/opt_enable View File


+ 0
- 0
buildroot/bin/opt_enable_adv View File


+ 0
- 0
buildroot/bin/opt_set View File


+ 0
- 0
buildroot/bin/opt_set_adv View File


+ 0
- 0
buildroot/bin/pins_set View File


+ 0
- 0
buildroot/bin/restore_configs View File


+ 0
- 0
buildroot/bin/use_example_configs View File


Marlin/scripts/firstpush → buildroot/share/git/firstpush View File


Marlin/scripts/mfinfo → buildroot/share/git/mfinfo View File


Marlin/scripts/mfnew → buildroot/share/git/mfnew View File


Marlin/scripts/mfpr → buildroot/share/git/mfpr View File


Marlin/scripts/mfprune → buildroot/share/git/mfprune View File


Marlin/scripts/mfrb → buildroot/share/git/mfrb View File


Marlin/scripts/mfup → buildroot/share/git/mfup View File


Documentation/Logo/Marlin Logo GitHub.png → buildroot/share/pixmaps/logo/Marlin Logo GitHub.png View File


Documentation/Logo/Marlin Logo LCD High.png → buildroot/share/pixmaps/logo/Marlin Logo LCD High.png View File


Documentation/Logo/Marlin Logo LCD Low_old.png → buildroot/share/pixmaps/logo/Marlin Logo LCD Low_old.png View File


Documentation/Logo/Marlin Logo.pdf → buildroot/share/pixmaps/logo/Marlin Logo.pdf View File


Documentation/Logo/Marlin Logo.png → buildroot/share/pixmaps/logo/Marlin Logo.png View File


Documentation/Logo/Marlin Logo.svg → buildroot/share/pixmaps/logo/Marlin Logo.svg View File


Documentation/Logo/Marlin Logo_old.ai → buildroot/share/pixmaps/logo/Marlin Logo_old.ai View File


Documentation/Logo/Marlin Logo_old.cdr → buildroot/share/pixmaps/logo/Marlin Logo_old.cdr View File


Documentation/Logo/Marlin Logo_old.dxf → buildroot/share/pixmaps/logo/Marlin Logo_old.dxf View File


Documentation/Logo/marlinwiki.png → buildroot/share/pixmaps/logo/marlinwiki.png View File


Marlin/scripts/createSpeedLookupTable.py → buildroot/share/scripts/createSpeedLookupTable.py View File


Marlin/scripts/createTemperatureLookupMarlin.py → buildroot/share/scripts/createTemperatureLookupMarlin.py View File


Marlin/scripts/findMissingTranslations.sh → buildroot/share/scripts/findMissingTranslations.sh View File


Marlin/scripts/g29_auto.py → buildroot/share/scripts/g29_auto.py View File


Loading…
Cancel
Save