ifneq ($(ARCH_HEADERS),)
-ARCH_HEADERS_IN := $(patsubst %,$(ARCH_DIR)/%,$(ARCH_HEADERS))
+ARCH_HEADERS_IN := $(patsubst %,../libc/sysdeps/linux/$(TARGET_ARCH)/%,$(ARCH_HEADERS))
ARCH_HEADERS_OUT := $(patsubst %,$(top_builddir)include/%,$(ARCH_HEADERS))
headers-y += arch_headers
arch_headers:
$(SECHO) $(LN) -fs $(ARCH_HEADERS) $(top_builddir)include/
@for h in $(ARCH_HEADERS_IN) ; do \
- $(LN) -fs ../libc/sysdeps/linux/$(TARGET_ARCH)/$$h $(top_builddir)include/ ; \
+ $(LN) -fs $$h $(top_builddir)include/ ; \
done
headers_clean-y += arch_headers_clean