@@ -447,7 +447,7 @@ def generate_project_ld_script(target, source, env):
447
447
"sections" : source [0 ].get_path (),
448
448
"input" : join (
449
449
FRAMEWORK_DIR , "components" , "esp32" , "ld" , "esp32.project.ld.in" ),
450
- "sdk_header" : join (env .subst ("$PROJECTSRC_DIR " ), "sdkconfig.h" ),
450
+ "sdk_header" : join (env .subst ("$PROJECT_SRC_DIR " ), "sdkconfig.h" ),
451
451
"fragments" : " " .join (
452
452
["\" %s\" " % f for f in project_files .get ("lf_files" )]),
453
453
"output" : target [0 ].get_path (),
@@ -591,7 +591,7 @@ def configure_exceptions(sdk_params):
591
591
join (FRAMEWORK_DIR , "components" , "lwip" , "port" , "esp32" , "include" ),
592
592
join (FRAMEWORK_DIR , "components" , "lwip" , "port" , "esp32" , "include" , "arch" ),
593
593
join (FRAMEWORK_DIR , "components" , "include_compat" ),
594
- join ("$PROJECTSRC_DIR " ),
594
+ join ("$PROJECT_SRC_DIR " ),
595
595
join (FRAMEWORK_DIR , "components" , "mbedtls" , "port" , "include" ),
596
596
join (FRAMEWORK_DIR , "components" , "mbedtls" , "mbedtls" , "include" ),
597
597
join (FRAMEWORK_DIR , "components" , "mdns" , "include" ),
@@ -719,7 +719,7 @@ def configure_exceptions(sdk_params):
719
719
720
720
721
721
def process_project_configs (filename ):
722
- config = join (env .subst ("$PROJECTSRC_DIR " ), filename )
722
+ config = join (env .subst ("$PROJECT_SRC_DIR " ), filename )
723
723
if not isfile (config ):
724
724
print ("Warning! Cannot find %s file. Default "
725
725
"file will be added to your project!" % filename )
@@ -738,15 +738,15 @@ def process_project_configs(filename):
738
738
739
739
new_config = find_valid_example_file (filename )
740
740
copy (config , join (
741
- env .subst ("$PROJECTSRC_DIR " ), "%s.bak" % filename ))
741
+ env .subst ("$PROJECT_SRC_DIR " ), "%s.bak" % filename ))
742
742
copy (new_config , config )
743
743
744
744
745
745
process_project_configs ("sdkconfig" )
746
- sdk_config = join (env .subst ("$PROJECTSRC_DIR " ), "sdkconfig" )
746
+ sdk_config = join (env .subst ("$PROJECT_SRC_DIR " ), "sdkconfig" )
747
747
748
748
process_project_configs ("sdkconfig.h" )
749
- sdk_config_header = join (env .subst ("$PROJECTSRC_DIR " ), "sdkconfig.h" )
749
+ sdk_config_header = join (env .subst ("$PROJECT_SRC_DIR " ), "sdkconfig.h" )
750
750
sdk_params = get_sdk_configuration (sdk_config_header )
751
751
752
752
configure_exceptions (sdk_params )
@@ -783,7 +783,7 @@ def process_project_configs(filename):
783
783
join ("$BUILD_DIR" , "esp32_out.ld" ),
784
784
join (FRAMEWORK_DIR , "components" , "esp32" , "ld" , "esp32.ld" ),
785
785
env .VerboseAction (
786
- '$CC -I"$PROJECTSRC_DIR " -C -P -x c -E $SOURCE -o $TARGET' ,
786
+ '$CC -I"$PROJECT_SRC_DIR " -C -P -x c -E $SOURCE -o $TARGET' ,
787
787
"Generating LD script $TARGET" ))
788
788
789
789
env .Depends ("$BUILD_DIR/$PROGNAME$PROGSUFFIX" , linker_script )
0 commit comments