endif
toolchain/patch-kernel.sh $(GDB_DIR) toolchain/gdb/$(GDB_VERSION) \*.patch
$(CONFIG_UPDATE) $(GDB_DIR)
- touch $(GDB_DIR)/.unpacked
+ touch $@
gdb-dirclean:
rm -rf $(GDB_DIR)
$(GDB_TARGET_DIR)/.configured: $(GDB_DIR)/.unpacked
mkdir -p $(GDB_TARGET_DIR)
- (cd $(GDB_TARGET_DIR); \
+ (cd $(GDB_TARGET_DIR); rm -rf config.cache ; \
gdb_cv_func_sigsetjmp=yes \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
ifeq ($(BR2_ENABLE_LOCALE),y)
-$(SED) "s,^INTL *=.*,INTL = -lintl,g;" $(GDB_DIR)/gdb/Makefile
endif
- touch $(GDB_TARGET_DIR)/.configured
+ touch $@
$(GDB_TARGET_DIR)/gdb/gdb: $(GDB_TARGET_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) MT_CFLAGS="$(TARGET_CFLAGS)" \
gdb_target-source: $(DL_DIR)/$(GDB_SOURCE)
gdb_target-clean:
- @if [ -d $(GDB_DIR)/Makefile ] ; then \
- $(MAKE) -C $(GDB_DIR) clean ; \
- fi;
+ -$(MAKE) -C $(GDB_DIR) clean
gdb_target-dirclean:
rm -rf $(GDB_DIR)
$(GDB_SERVER_DIR)/.configured: $(GDB_DIR)/.unpacked
mkdir -p $(GDB_SERVER_DIR)
- (cd $(GDB_SERVER_DIR); \
+ (cd $(GDB_SERVER_DIR); rm -rf config.cache ; \
$(TARGET_CONFIGURE_OPTS) \
gdb_cv_func_sigsetjmp=yes \
bash_cv_have_mbstate_t=yes \
--disable-tui --disable-gdbtk --without-x \
--without-included-gettext \
);
- touch $(GDB_SERVER_DIR)/.configured
+ touch $@
$(GDB_SERVER_DIR)/gdbserver: $(GDB_SERVER_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) MT_CFLAGS="$(TARGET_CFLAGS)" \
gdbserver: $(TARGET_DIR)/usr/bin/gdbserver
gdbserver-clean:
- @if [ -d $(GDB_SERVER_DIR)/Makefile ] ; then \
- $(MAKE) -C $(GDB_SERVER_DIR) clean ; \
- fi;
+ -$(MAKE) -C $(GDB_SERVER_DIR) clean
gdbserver-dirclean:
rm -rf $(GDB_SERVER_DIR)
$(GDB_HOST_DIR)/.configured: $(GDB_DIR)/.unpacked
mkdir -p $(GDB_HOST_DIR)
- (cd $(GDB_HOST_DIR); \
+ (cd $(GDB_HOST_DIR); rm -rf config.cache ; \
gdb_cv_func_sigsetjmp=yes \
bash_cv_have_mbstate_t=yes \
$(GDB_DIR)/configure \
--without-included-gettext \
--enable-threads \
);
- touch $(GDB_HOST_DIR)/.configured
+ touch $@
$(GDB_HOST_DIR)/gdb/gdb: $(GDB_HOST_DIR)/.configured
$(MAKE) -C $(GDB_HOST_DIR)
$(TARGET_CROSS)gdb: $(GDB_HOST_DIR)/gdb/gdb
install -c $(GDB_HOST_DIR)/gdb/gdb $(TARGET_CROSS)gdb
ln -snf ../../bin/$(REAL_GNU_TARGET_NAME)-gdb \
- $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/bin/gdb
+ $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin/gdb
ln -snf $(REAL_GNU_TARGET_NAME)-gdb \
- $(STAGING_DIR)/bin/$(GNU_TARGET_NAME)-gdb
+ $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-gdb
gdbhost: $(TARGET_CROSS)gdb
gdbhost-clean:
- @if [ -d $(GDB_HOST_DIR)/Makefile ] ; then \
- $(MAKE) -C $(GDB_HOST_DIR) clean ; \
- fi;
+ -$(MAKE) -C $(GDB_HOST_DIR) clean
gdbhost-dirclean:
rm -rf $(GDB_HOST_DIR)