Skip to content

Commit

Permalink
Use new env for board-oriented extra flags
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Mar 5, 2021
1 parent f56929d commit b19abb1
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 31 deletions.
4 changes: 0 additions & 4 deletions Marlin/src/pins/lpc1768/pins_BTT_SKR_V1_4.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
#define BOARD_INFO_NAME "BTT SKR V1.4"
#endif

#ifndef BOARD_CUSTOM_BUILD_FLAGS
#define BOARD_CUSTOM_BUILD_FLAGS -DLPC_PINCFG_UART3_P4_28
#endif

//
// SD Connection
//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@
#elif MB(BTT_SKR_V1_3)
#include "lpc1768/pins_BTT_SKR_V1_3.h" // LPC1768 env:LPC1768
#elif MB(BTT_SKR_V1_4)
#include "lpc1768/pins_BTT_SKR_V1_4.h" // LPC1768 env:LPC1768
#include "lpc1768/pins_BTT_SKR_V1_4.h" // LPC1768 env:LPC1768_btt_skr_v1_4

//
// LPC1769 ARM Cortex M3
Expand Down
3 changes: 0 additions & 3 deletions Marlin/src/pins/ramps/pins_LONGER3D_LKx_PRO.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
#warning "Serial 3 is originally reserved to Y limit switches. Hardware changes are required to use it."
#endif

// Custom flags and defines for the build
//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__

#define BOARD_INFO_NAME "LGT KIT V1.0"

//
Expand Down
3 changes: 0 additions & 3 deletions Marlin/src/pins/ramps/pins_RAMPS.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' (or other appropriate target) in 'Tools > Board.'"
#endif

// Custom flags and defines for the build
//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__

#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "RAMPS 1.4"
#endif
Expand Down
3 changes: 0 additions & 3 deletions Marlin/src/pins/ramps/pins_RAMPS_S_12.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
#error "Oops! Select 'Arduino/Genuino Mega or Mega 2560' in 'Tools > Board.'"
#endif

// Custom flags and defines for the build
//#define BOARD_CUSTOM_BUILD_FLAGS -D__FOO__

#ifndef BOARD_INFO_NAME
#define BOARD_INFO_NAME "RAMPS S 1.2"
#endif
Expand Down
16 changes: 0 additions & 16 deletions buildroot/share/PlatformIO/scripts/common-dependencies-post.py

This file was deleted.

7 changes: 6 additions & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ extra_scripts =
pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
pre:buildroot/share/PlatformIO/scripts/preflight-checks.py
post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
build_flags = -fmax-errors=5 -g3 -D__MARLIN_FIRMWARE__ -fmerge-constants
lib_deps =

Expand Down Expand Up @@ -728,6 +727,12 @@ platform = ${common_LPC.platform}
extends = common_LPC
board = nxp_lpc1769

# BTT SKR 1.4 needs a UART3 tweak
[env:LPC1768_btt_skr_v1_4]
platform = ${LPC1768.platform}
extends = env:LPC1768
build_flags = ${env:LPC1768.build_flags} -DLPC_PINCFG_UART3_P4_28

#################################
# #
# STM32 Architecture #
Expand Down

0 comments on commit b19abb1

Please sign in to comment.