Commit b129b002 authored by Thomas Preud'homme's avatar Thomas Preud'homme

Follow new _nano naming convention in variables

parent da54637f
......@@ -23,11 +23,11 @@ STAMP_DIR=$(TOP_DIR)/debian/stamp
UNPACK=$(STAMP_DIR)/unpack
APPY_PATCHES=$(STAMP_DIR)/patches
BUILD_DIR=$(TOP_DIR)/build/libstdc++
BUILD_SIZE_DIR=$(TOP_DIR)/build_s/libstdc++
BUILD_NANO_DIR=$(TOP_DIR)/build_nano/libstdc++
PNEWLIB=libstdc\+\+-arm-none-eabi-newlib
BUILDFLAGS=CFLAGS="-g -O2 -ffunction-sections -fdata-sections" CXXFLAGS="-g -O2 -ffunction-sections -fdata-sections" LDFLAGS=""
BUILDFLAGS_S=CFLAGS="-g -Os -ffunction-sections -fdata-sections -fno-exceptions" CXXFLAGS="-g -Os -ffunction-sections -fdata-sections -fno-exceptions" LDFLAGS=""
BUILDFLAGS_NANO=CFLAGS="-g -Os -ffunction-sections -fdata-sections -fno-exceptions" CXXFLAGS="-g -Os -ffunction-sections -fdata-sections -fno-exceptions" LDFLAGS=""
TARGET_TOOLS=\
AR_FOR_TARGET=$(TARGET)-ar \
......@@ -91,9 +91,9 @@ $(APPY_PATCHES): $(UNPACK)
touch $@
override_dh_auto_configure: $(UNPACK) $(APPY_PATCHES)
mkdir -p $(BUILD_DIR) $(BUILD_SIZE_DIR)
mkdir -p $(BUILD_DIR) $(BUILD_NANO_DIR)
dh_auto_configure -D$(LIBSTDCXX_SDIR) -B$(BUILD_DIR) -- $(CONFIGURE_FLAGS) $(BUILDFLAGS)
dh_auto_configure -D$(LIBSTDCXX_SDIR) -B$(BUILD_SIZE_DIR) -- $(CONFIGURE_FLAGS) $(BUILDFLAGS_S)
dh_auto_configure -D$(LIBSTDCXX_SDIR) -B$(BUILD_NANO_DIR) -- $(CONFIGURE_FLAGS) $(BUILDFLAGS_NANO)
override_dh_auto_clean:
rm -rf $(UPSTREAM_DIR) build* debian/*tmp* debian/copyright-gcc $(STAMP_DIR)
......@@ -101,21 +101,21 @@ override_dh_auto_clean:
override_dh_auto_test:
@echo "no testing, that's way too painful"
# dh_auto_test -D$(LIBSTDCXX_SDIR) -B$(BUILD_DIR)
# dh_auto_test -D$(LIBSTDCXX_SDIR) -B$(BUILD_SIZE_DIR)
# dh_auto_test -D$(LIBSTDCXX_SDIR) -B$(BUILD_NANO_DIR)
override_dh_gencontrol:
dh_gencontrol -- -v$(DVERSION) -Vlocal:Version=$(UVERSION) -Vgcc:Version=$(SVERSION) -VBuilt-Using="$(BUILT_USING)"
override_dh_auto_build:
dh_auto_build -B $(BUILD_DIR)
dh_auto_build -B $(BUILD_SIZE_DIR)
dh_auto_build -B $(BUILD_NANO_DIR)
override_dh_auto_install:
dh_auto_install -B $(BUILD_DIR) --destdir debian/$(PNEWLIB)-tmp
dh_auto_install -B $(BUILD_SIZE_DIR) --destdir debian/$(PNEWLIB)-tmp_size
find debian/$(PNEWLIB)-tmp_size \
dh_auto_install -B $(BUILD_NANO_DIR) --destdir debian/$(PNEWLIB)-tmp_nano
find debian/$(PNEWLIB)-tmp_nano \
-name "*.a" \
-exec rename 's@debian/$(PNEWLIB)-tmp_size/(.*).a@debian/$(PNEWLIB)-tmp/$$1_nano.a@' \{\} \;
-exec rename 's@debian/$(PNEWLIB)-tmp_nano/(.*).a@debian/$(PNEWLIB)-tmp/$$1_nano.a@' \{\} \;
find debian/$(PNEWLIB)-tmp -name "*.la" -exec rm -f {} +
override_dh_install:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment