All pastes #110239 Raw Edit

Untitled

public text v1 · immutable
·published 2006-08-01 14:00 UTC
rendered paste body
                --disable-nls \
        );
endef
define Stage2/Compile
        PATH=$(TARGET_PATH) $(MAKE) -C $(BUILD_DIR2) all
endef
define Stage2/Install
        PATH=$(TARGET_PATH) $(MAKE) -C $(BUILD_DIR2) install
        echo $(PKG_VERSION) > $(STAGING_DIR)/gcc_version
        # Set up the symlinks to enable lying about target name.
        set -e; \
        (cd $(STAGING_DIR); \
                ln -sf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \
                cd bin; \
                for app in $(REAL_GNU_TARGET_NAME)-* ; do \
                        ln -sf $${app} \
                        $(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \
                done; \
        );
        ifeq ($(CONFIG_USE_CCACHE),y)
                ifneq (,$(ccache))
                        set -e; \
                        (cd $(STAGING_DIR); \
                        cd usr/bin ; \
                        for app in gcc c++ g++; do \
                                ln -sf $(ccache) $$(app) \
                        done; \
                        );
                endif
        endif
endef

define Build/Prepare
        $(call Build/Prepare/Default)
        $(SCRIPT_DIR)/patch-kernel.sh $(PKG_BUILD_DIR) ./patches/$(PKG_VERSION) \*.patch
        $(SED) 's,\(version_string.. = "[0-9\.]*\).*\(";\),\1 (OpenWrt-2.0)\2,' $(PKG_BUILD_DIR)/gcc/version.c
        $(SED) 's,\(bug_report_url.. = "\).*\(";\),\1<URL:https://dev.openwrt.org/>\2,' $(PKG_BUILD_DIR)/gcc/version.c
endef

define Build/Configure
        $(call Stage1/Configure)
endef