summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/Makefile.arch
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/Makefile.arch')
-rw-r--r--libc/sysdeps/linux/Makefile.arch8
1 files changed, 2 insertions, 6 deletions
diff --git a/libc/sysdeps/linux/Makefile.arch b/libc/sysdeps/linux/Makefile.arch
index a2d675294..5feffe8d6 100644
--- a/libc/sysdeps/linux/Makefile.arch
+++ b/libc/sysdeps/linux/Makefile.arch
@@ -5,17 +5,13 @@
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#
-ifeq ($(TARGET_ARCH),)
-$(error TARGET_ARCH is not set, no .config exists in topdir)
-endif
-
ARCH_DIR := $(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH)
ARCH_OUT := $(top_builddir)libc/sysdeps/linux/$(TARGET_ARCH)
ARCH_CSRC := $(patsubst %.c,$(ARCH_DIR)/%.c,$(CSRC))
ARCH_COBJ := $(patsubst %.c,$(ARCH_OUT)/%.o,$(CSRC))
-ARCH_SSRC := $(patsubst %.S,$(ARCH_DIR)/%.S,$(SSRC))
-ARCH_SOBJ := $(patsubst %.S,$(ARCH_OUT)/%.o,$(SSRC))
+ARCH_SSRC := $(patsubst %.s,$(ARCH_DIR)/%.s,$(patsubst %.S,$(ARCH_DIR)/%.S,$(SSRC)))
+ARCH_SOBJ := $(patsubst %.s,$(ARCH_OUT)/%.o,$(patsubst %.S,$(ARCH_OUT)/%.o,$(SSRC)))
ARCH_OBJS := $(ARCH_COBJ) $(ARCH_SOBJ)