Merge tag '2.0.7.2' into master
This commit is contained in:
@@ -32,7 +32,7 @@ def xor_block(r0, r1, block_number, block_size, file_key):
|
||||
key_length = 0x18
|
||||
|
||||
# This is an initial seed
|
||||
xor_seed = 0x4bad
|
||||
xor_seed = 0x4BAD
|
||||
|
||||
# This is the block counter
|
||||
block_number = xor_seed * block_number
|
||||
@@ -77,7 +77,7 @@ def encrypt_file(input, output_file, file_length):
|
||||
uid_value = uuid.uuid4()
|
||||
file_key = int(uid_value.hex[0:8], 16)
|
||||
|
||||
xor_crc = 0xef3d4323;
|
||||
xor_crc = 0xEF3D4323;
|
||||
|
||||
# the input file is exepcted to be in chunks of 0x800
|
||||
# so round the size
|
||||
|
@@ -19,7 +19,6 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
/**
|
||||
* The purpose of this file is just include Marlin Configuration files,
|
||||
@@ -27,44 +26,9 @@
|
||||
* Used by common-dependencies.py
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#define NUM_SERIAL 1 // Normally provided by HAL/HAL.h
|
||||
|
||||
// Include platform headers
|
||||
//#include "../../../../Marlin/src/HAL/platforms.h"
|
||||
|
||||
#include "../../../../Marlin/src/core/boards.h"
|
||||
#include "../../../../Marlin/src/core/macros.h"
|
||||
#include "../../../../Marlin/Configuration.h"
|
||||
|
||||
#include "../../../../Marlin/Version.h"
|
||||
|
||||
#include "../../../../Marlin/src/inc/Conditionals_LCD.h"
|
||||
|
||||
#ifdef HAL_PATH
|
||||
#include HAL_PATH(../../../../Marlin/src/HAL, inc/Conditionals_LCD.h)
|
||||
#endif
|
||||
|
||||
#include "../../../../Marlin/src/core/drivers.h"
|
||||
#include "../../../../Marlin/Configuration_adv.h"
|
||||
|
||||
#include "../../../../Marlin/src/inc/Conditionals_adv.h"
|
||||
|
||||
#ifdef HAL_PATH
|
||||
#include HAL_PATH(../../../../Marlin/src/HAL, inc/Conditionals_adv.h)
|
||||
#endif
|
||||
|
||||
//#include "../../../../Marlin/src/pins/pins.h"
|
||||
|
||||
#ifdef HAL_PATH
|
||||
#include HAL_PATH(../../../../Marlin/src/HAL, timers.h)
|
||||
#include HAL_PATH(../../../../Marlin/src/HAL, spi_pins.h)
|
||||
#endif
|
||||
|
||||
#include "../../../../Marlin/src/inc/Conditionals_post.h"
|
||||
|
||||
#ifdef HAL_PATH
|
||||
#include HAL_PATH(../../../../Marlin/src/HAL, inc/Conditionals_post.h)
|
||||
#endif
|
||||
#include "../../../../Marlin/src/inc/MarlinConfig.h"
|
||||
|
||||
//
|
||||
// Conditionals only used for [features]
|
||||
@@ -89,6 +53,10 @@
|
||||
#define HAS_EXTRUDERS
|
||||
#endif
|
||||
|
||||
#if ENABLED(DUET_SMART_EFFECTOR) && PIN_EXISTS(SMART_EFFECTOR_MOD)
|
||||
#define HAS_SMART_EFF_MOD
|
||||
#endif
|
||||
|
||||
#if HAS_LCD_MENU
|
||||
#if ENABLED(BACKLASH_GCODE)
|
||||
#define HAS_MENU_BACKLASH
|
||||
@@ -145,6 +113,3 @@
|
||||
#define HAS_MENU_UBL
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Include pins for the current board. Platform tests will be skipped. No HAL-defined pins.
|
||||
#include "../../../../Marlin/src/pins/pins.h"
|
||||
|
@@ -39,6 +39,12 @@ def parse_pkg_uri(spec):
|
||||
FEATURE_CONFIG = {}
|
||||
|
||||
def add_to_feat_cnf(feature, flines):
|
||||
|
||||
try:
|
||||
feat = FEATURE_CONFIG[feature]
|
||||
except:
|
||||
FEATURE_CONFIG[feature] = {}
|
||||
|
||||
feat = FEATURE_CONFIG[feature]
|
||||
atoms = re.sub(',\\s*', '\n', flines).strip().split('\n')
|
||||
for dep in atoms:
|
||||
@@ -238,7 +244,7 @@ def load_marlin_features():
|
||||
else:
|
||||
cmd += ['-D' + s]
|
||||
|
||||
cmd += ['-D__MARLIN_PREBUILD__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h']
|
||||
cmd += ['-D__MARLIN_DEPS__ -w -dM -E -x c++ buildroot/share/PlatformIO/scripts/common-dependencies.h']
|
||||
cmd = ' '.join(cmd)
|
||||
blab(cmd)
|
||||
define_list = subprocess.check_output(cmd, shell=True).splitlines()
|
||||
|
16
buildroot/share/PlatformIO/scripts/fly_mini.py
Normal file
16
buildroot/share/PlatformIO/scripts/fly_mini.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
Import("env")
|
||||
|
||||
# Relocate firmware from 0x08000000 to 0x08005000
|
||||
for define in env['CPPDEFINES']:
|
||||
if define[0] == "VECT_TAB_ADDR":
|
||||
env['CPPDEFINES'].remove(define)
|
||||
env['CPPDEFINES'].append(("VECT_TAB_ADDR", "0x08005000"))
|
||||
|
||||
custom_ld_script = os.path.abspath("buildroot/share/PlatformIO/ldscripts/fly_mini.ld")
|
||||
for i, flag in enumerate(env["LINKFLAGS"]):
|
||||
if "-Wl,-T" in flag:
|
||||
env["LINKFLAGS"][i] = "-Wl,-T" + custom_ld_script
|
||||
elif flag == "-T":
|
||||
env["LINKFLAGS"][i + 1] = custom_ld_script
|
||||
|
Reference in New Issue
Block a user