Tweak tests, consolidate pins target validation (#21254)
This commit is contained in:
		| @@ -1,16 +0,0 @@ | ||||
| # | ||||
| # common-dependencies-post.py | ||||
| # Convenience script to add build flags for Marlin Enabled Features | ||||
| # | ||||
|  | ||||
| Import("env") | ||||
| Import("projenv") | ||||
|  | ||||
| def apply_board_build_flags(): | ||||
| 	if not 'BOARD_CUSTOM_BUILD_FLAGS' in env['MARLIN_FEATURES']: | ||||
| 		return | ||||
| 	projenv.Append(CCFLAGS=env['MARLIN_FEATURES']['BOARD_CUSTOM_BUILD_FLAGS'].split()) | ||||
|  | ||||
| # We need to add the board build flags in a post script | ||||
| # so the platform build script doesn't overwrite the custom CCFLAGS | ||||
| apply_board_build_flags() | ||||
| @@ -49,8 +49,7 @@ config = env.GetProjectConfig() | ||||
| result = check_envs("env:"+build_env, base_envs, config) | ||||
|  | ||||
| if not result: | ||||
| 	err = "Error: your selected build environment '%s' is not compatible with MOTHERBOARD=%s in Configuration.h. " \ | ||||
| 		  "Please use one of compatible build environments for this board: %s" % \ | ||||
| 	err = "Error: Build environment '%s' is incompatible with %s. Use one of these: %s" % \ | ||||
| 		  (build_env, motherboard, ",".join([e[4:] for e in base_envs if e.startswith("env:")])) | ||||
| 	raise SystemExit(err) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user