]> granicus.if.org Git - esp-idf/commitdiff
ldgen make: Use "sed -E" for extended POSIX regular expression syntax w/ BSD sed
authorAngus Gratton <angus@espressif.com>
Thu, 6 Dec 2018 04:07:24 +0000 (15:07 +1100)
committerAngus Gratton <gus@projectgus.com>
Thu, 6 Dec 2018 04:28:18 +0000 (15:28 +1100)
make/ldgen.mk

index bc7fdc681aba44f053b3a73aeab7d0dea7f3ca8d..2cbb6f43f80ab319c7de6ec261c6be5e2578be54 100644 (file)
@@ -8,7 +8,8 @@ LDGEN_FRAGMENT_FILES = $(COMPONENT_LDFRAGMENTS)
 define ldgen_process_template
 $(BUILD_DIR_BASE)/ldgen.section_infos: $(LDGEN_SECTIONS_INFO_FILES) $(IDF_PATH)/make/ldgen.mk
        printf "$(foreach section_info,$(LDGEN_SECTIONS_INFO_FILES),$(section_info)\n)" > $(BUILD_DIR_BASE)/ldgen.section_infos
-       sed -i 's|^[[:blank:]]*||g' $(BUILD_DIR_BASE)/ldgen.section_infos
+       sed -E -i.bak 's|^[[:blank:]]*||g' $(BUILD_DIR_BASE)/ldgen.section_infos
+       rm $(BUILD_DIR_BASE)/ldgen.section_infos.bak
 ifeq ($(OS), Windows_NT)
        mv $(BUILD_DIR_BASE)/ldgen.section_infos $(BUILD_DIR_BASE)/ldgen.section_infos.temp
        cygpath -w -f $(BUILD_DIR_BASE)/ldgen.section_infos.temp > $(BUILD_DIR_BASE)/ldgen.section_infos