HEADERS_RM-$(UCLIBC_HAS_WORDEXP) += wordexp.h
HEADERS_RM-$(UCLIBC_HAS_XATTR) += sys/xattr.h
HEADERS_RM-$(UCLIBC_HAS_XLOCALE) += xlocale.h
-HEADERS_RM-$(UCLIBC_LINUX_SPECIFIC) += sys/fsuid.h sys/inotify.h sys/perm.h \
+HEADERS_RM-$(UCLIBC_LINUX_SPECIFIC) += sys/eventfd.h sys/fsuid.h \
+ bits/inotify.h \
+ sys/inotify.h \
+ sys/kdaemon.h \
+ sys/perm.h \
sys/personality.h \
sys/prctl.h \
sys/reboot.h \
sys/sendfile.h \
+ bits/signalfd.h \
sys/signalfd.h \
bits/statfs.h \
sys/statfs.h \
sys/swap.h \
sys/sysctl.h \
sys/sysinfo.h \
+ bits/timerfd.h \
+ sys/timerfd.h \
sys/vfs.h
HEADERS_RM-$(UCLIBC_SUPPORT_AI_ADDRCONFIG) += ifaddrs.h
HEADERS_RM-$(UCLIBC_SV4_DEPRECATED) += ustat.h sys/ustat.h bits/ustat.h
HEADERS_RM-$(UCLIBC_SUSV3_LEGACY) += sys/timeb.h regexp.h
HEADERS_RM-$(UCLIBC_SUSV4_LEGACY) += utime.h ucontext.h
+HEADERS_RM-$(UCLIBC_HAS_ADVANCED_REALTIME) += spawn.h
ifneq ($(findstring install,$(MAKECMDGOALS)),)
$(addprefix $(PREFIX)$(DEVEL_PREFIX),include $(MULTILIB_DIR)):
ifeq ($(HAVE_SHARED),y)
$(INSTALL) -m 755 $(top_builddir)lib/lib*-$(VERSION).so \
$(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR)
- (cd $(top_builddir)lib && $(TAR) -cf - *.so.*) | $(TAR) -xf - -C $(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR)
+ (cd $(top_builddir)lib && $(TAR) --exclude=$(UCLIBC_LDSO_NAME).so.lds -cf - *.so.*) \
+ | $(TAR) -xf - -C $(PREFIX)$(RUNTIME_PREFIX)$(MULTILIB_DIR)
@if [ -x $(top_builddir)lib/$(UCLIBC_LDSO_NAME)-$(VERSION).so ] ; then \
set -e; \
$(SHELL_SET_X); \
endif
utils: | pregen
- $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" -C utils $@
+ $(Q)$(MAKE) CROSS_COMPILE="$(CROSS_COMPILE)" CC="$(CC)" -C utils $@
# Installs helper applications, such as 'ldd' and 'ldconfig'
install_utils: utils
- $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" -C utils utils_install
+ $(Q)$(MAKE) CROSS_COMPILE="$(CROSS_COMPILE)" CC="$(CC)" -C utils utils_install
endif # ifeq ($(HAVE_DOT_CONFIG),y)
hostutils: | pregen
- $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" HOSTCC="$(HOSTCC)" DOTHOST=.host -C utils $@
+ $(Q)$(MAKE) CROSS_COMPILE="$(CROSS_COMPILE)" CC="$(CC)" HOSTCC="$(HOSTCC)" DOTHOST=.host -C utils $@
install_hostutils: hostutils
- $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" HOSTCC="$(HOSTCC)" DOTHOST=.host -C utils utils_install
+ $(Q)$(MAKE) CROSS_COMPILE="$(CROSS_COMPILE)" CC="$(CC)" HOSTCC="$(HOSTCC)" DOTHOST=.host -C utils utils_install
$(addprefix $(top_builddir),include include/bits include/sys include/config lib extra/config/lxdialog extra/locale extra/scripts $(subdirs)):
$(do_mkdir)
$(conf) $(mconf): | $(top_builddir)include/config $(top_builddir)extra/config/lxdialog
$(Q)$(MAKE) -C extra/config $(@F)
+arch-defconfigs := $(notdir $(wildcard $(top_srcdir)extra/Configs/defconfigs/$(ARCH)/*_defconfig))
+
menuconfig: $(mconf)
$(Q)$< extra/Configs/Config.in
allnoconfig: $(conf)
$(Q)$< -n extra/Configs/Config.in
-defconfig: $(conf)
- $(Q)$< -D extra/Configs/defconfigs/$(ARCH)/$@ extra/Configs/Config.in
+cmd_defconfig = $(Q)$< -D extra/Configs/defconfigs/$(ARCH)/$@ extra/Configs/Config.in
+defconfig: $(conf) ; $(cmd_defconfig)
+%_defconfig: $(conf) ; $(cmd_defconfig)
menuconfig-clean-y:
$(Q)$(MAKE) -C extra/config CLEAN_extra/config
+# The find here should continue to work as long as we are only symlinking
+# headers in to include/. I don't see this changing to anything else, so
+# it should be fine.
include_clean:
- $(Q)$(RM) $(top_builddir)include/fpu_control.h $(top_builddir)include/dl-osinfo.h $(top_builddir)include/hp-timing.h
- @set -e; \
- for i in `(cd libc/sysdeps/linux/common/sys; ls *.h)` ; do \
- $(RM) $(top_builddir)include/sys/$$i; \
- done; \
- if [ -d libc/sysdeps/linux/$(TARGET_ARCH)/sys ] ; then \
- for i in `(cd libc/sysdeps/linux/$(TARGET_ARCH)/sys; ls *.h)` ; do \
- $(RM) $(top_builddir)include/sys/$$i; \
- done; \
- fi
+ $(SECHO) " CLEAN include"
+ $(Q)$(RM) -r $(top_builddir)include/bits
+ $(Q)find $(top_builddir)include/ -type l -exec rm -f {} +
clean: include_clean
- $(Q)$(RM) -r $(top_builddir)lib $(top_builddir)include/bits
+ $(Q)$(RM) -r $(top_builddir)lib
@$(MAKE) -C utils CLEAN_utils
+$(MAKE) -s -C test clean
- @$(RM) $(top_builddir)include/linux $(top_builddir)include/asm*
$(Q)$(RM) $(top_builddir)extra/scripts/unifdef
$(Q)$(RM) -r $(LOCAL_INSTALL_PATH)