$(MAKE) DESTDIR=$(STAGING_DIR) -C $(ALSA_UTILS_DIR) install
mkdir -p $(TARGET_DIR)/usr/bin
mkdir -p $(TARGET_DIR)/usr/sbin
- for file in $(ALSA_UTILS_TARGETS_y) ; do \
+ for file in $(ALSA_UTILS_TARGETS_y); do \
cp -dpf $(STAGING_DIR)/$$file $(TARGET_DIR)/$$file; \
done
- if [ -x "$(TARGET_DIR)/usr/bin/speaker-test" ] ; then \
+ if [ -x "$(TARGET_DIR)/usr/bin/speaker-test" ]; then \
mkdir -p $(TARGET_DIR)/usr/share/alsa/speaker-test; \
mkdir -p $(TARGET_DIR)/usr/share/sounds/alsa; \
cp -rdpf $(STAGING_DIR)/usr/share/alsa/speaker-test/* $(TARGET_DIR)/usr/share/alsa/speaker-test/; \
alsa-utils: uclibc alsa-lib ncurses $(TARGET_DIR)/$(ALSA_UTILS_TARGET_BINARY)
alsa-utils-clean:
- for file in $(ALSA_UTILS_TARGETS_y) ; do \
+ for file in $(ALSA_UTILS_TARGETS_y); do \
rm -f $(TARGET_DIR)/$$file; \
done
- for file in $(ALSA_UTILS_TARGETS_) ; do \
+ for file in $(ALSA_UTILS_TARGETS_); do \
rm -f $(TARGET_DIR)/$$file; \
done
-$(MAKE) -C $(ALSA_UTILS_DIR) clean
ifneq ($(ARGUS_PATCH),)
(cd $(ARGUS_DIR) && $(ARGUS_CAT) $(DL_DIR)/$(ARGUS_PATCH) | patch -p1)
if [ -d $(ARGUS_DIR)/debian/patches ]; then \
- toolchain/patch-kernel.sh $(ARGUS_DIR) $(ARGUS_DIR)/debian/patches \*.patch ; \
+ toolchain/patch-kernel.sh $(ARGUS_DIR) $(ARGUS_DIR)/debian/patches \*.patch; \
fi
endif
touch $@
boa-source: $(DL_DIR)/$(BOA_SOURCE)
boa-clean:
- @if [ -d $(BOA_WORKDIR)/Makefile ] ; then \
- $(MAKE) -C $(BOA_WORKDIR) clean ; \
+ @if [ -d $(BOA_WORKDIR)/Makefile ]; then \
+ $(MAKE) -C $(BOA_WORKDIR) clean; \
fi
boa-dirclean:
touch $(BSDIFF_DIR)/.source
$(BSDIFF_DIR)/$(BSDIFF_BINARY): $(BSDIFF_DIR)/.source
- (cd $(BSDIFF_DIR) ; \
+ (cd $(BSDIFF_DIR); \
$(TARGET_CONFIGURE_ARGS) \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CC) -L $(STAGING_DIR)/lib -lbz2 \
- $(TARGET_CFLAGS) bsdiff.c -o bsdiff ; \
+ $(TARGET_CFLAGS) bsdiff.c -o bsdiff; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CC) -L $(STAGING_DIR)/lib -lbz2 \
- $(TARGET_CFLAGS) bspatch.c -o bspatch ; \
+ $(TARGET_CFLAGS) bspatch.c -o bspatch; \
)
$(TARGET_DIR)/$(BSDIFF_TARGET_BINARY): $(BSDIFF_DIR)/$(BSDIFF_BINARY)
$(BZIP2_DIR)/.unpacked: $(DL_DIR)/$(BZIP2_SOURCE)
$(BZIP2_CAT) $(DL_DIR)/$(BZIP2_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
$(SED) "s,ln \$$(,ln -snf \$$(,g" $(BZIP2_DIR)/Makefile
- $(SED) "s,ln -s (lib.*),ln -snf \$$1 ; ln -snf libbz2.so.$(BZIP2_VERSION) \
+ $(SED) "s,ln -s (lib.*),ln -snf \$$1; ln -snf libbz2.so.$(BZIP2_VERSION) \
libbz2.so,g" $(BZIP2_DIR)/Makefile-libbz2_so
ifneq ($(BR2_LARGEFILE),y)
$(SED) "s,^BIGFILES,#BIGFILES,g" $(BZIP2_DIR)/Makefile
cp $(BZIP2_DIR)/bzlib.h $(STAGING_DIR)/usr/include/
cp $(BZIP2_DIR)/libbz2.so.$(BZIP2_VERSION) $(STAGING_DIR)/lib/
cp $(BZIP2_DIR)/libbz2.a $(STAGING_DIR)/usr/lib/
- (cd $(STAGING_DIR)/usr/lib/ ; ln -snf ../../lib/libbz2.so.$(BZIP2_VERSION) libbz2.so)
- (cd $(STAGING_DIR)/lib ; ln -snf libbz2.so.$(BZIP2_VERSION) libbz2.so.1.0; \
+ (cd $(STAGING_DIR)/usr/lib/; ln -snf ../../lib/libbz2.so.$(BZIP2_VERSION) libbz2.so)
+ (cd $(STAGING_DIR)/lib; ln -snf libbz2.so.$(BZIP2_VERSION) libbz2.so.1.0; \
ln -snf libbz2.so.$(BZIP2_VERSION) libbz2.so.1)
$(BZIP2_BINARY): $(STAGING_DIR)/lib/libbz2.so.$(BZIP2_VERSION)
$(BUILD_DIR)/.customize:
rm -f $(PROJECT_BUILD_DIR)/series
- (cd $(CUST_DIR) ; \
+ (cd $(CUST_DIR); \
/bin/ls -d * > $(PROJECT_BUILD_DIR)/series || \
touch $(PROJECT_BUILD_DIR)/series )
- for f in `cat $(PROJECT_BUILD_DIR)/series` ; do \
- cp -af $(CUST_DIR)/$$f $(TARGET_DIR)/$$f ; \
+ for f in `cat $(PROJECT_BUILD_DIR)/series`; do \
+ cp -af $(CUST_DIR)/$$f $(TARGET_DIR)/$$f; \
done
rm -f $(PROJECT_BUILD_DIR)/series
touch $@
ifneq ($(CVS_PATCH),)
toolchain/patch-kernel.sh $(CVS_DIR) $(DL_DIR) $(CVS_PATCH)
if [ -d $(CVS_DIR)/debian/patches ]; then \
- (cd $(CVS_DIR)/debian/patches && for i in * ; \
- do $(SED) 's,^\+\+\+ .*cvs-$(CVS_VERSION)/,+++ cvs-$(CVS_VERSION)/,' $$i ; \
- done ; \
- ) ; \
- toolchain/patch-kernel.sh $(CVS_DIR) $(CVS_DIR)/debian/patches \* ; \
+ (cd $(CVS_DIR)/debian/patches && for i in *; \
+ do $(SED) 's,^\+\+\+ .*cvs-$(CVS_VERSION)/,+++ cvs-$(CVS_VERSION)/,' $$i; \
+ done; \
+ ); \
+ toolchain/patch-kernel.sh $(CVS_DIR) $(CVS_DIR)/debian/patches \*; \
fi
endif
touch $@
touch $(DBUS_GLIB_DIR)/.unpacked
$(DBUS_GLIB_DIR)/.configured: $(DBUS_GLIB_DIR)/.unpacked /usr/bin/pkg-config
- (cd $(DBUS_GLIB_DIR); rm -rf config.cache; autoconf ; \
+ (cd $(DBUS_GLIB_DIR); rm -rf config.cache; autoconf; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
ac_cv_have_abstract_sockets=yes \
dillo-source: $(DL_DIR)/$(DILLO_SOURCE)
dillo-clean:
- @if [ -d $(DILLO_DIR)/Makefile ] ; then \
- $(MAKE) -C $(DILLO_DIR) clean ; \
+ @if [ -d $(DILLO_DIR)/Makefile ]; then \
+ $(MAKE) -C $(DILLO_DIR) clean; \
fi
dillo-dirclean:
$(E2FSPROGS_DIR)/$(E2FSPROGS_BINARY): $(E2FSPROGS_DIR)/.configured
$(MAKE1) PATH=$(TARGET_PATH) -C $(E2FSPROGS_DIR)
( \
- cd $(E2FSPROGS_DIR)/misc ; \
- $(STRIP) $(E2FSPROGS_MISC_STRIP) ; \
+ cd $(E2FSPROGS_DIR)/misc; \
+ $(STRIP) $(E2FSPROGS_MISC_STRIP); \
)
$(STRIP) $(E2FSPROGS_DIR)/lib/lib*.so.*.*
touch -c $(E2FSPROGS_DIR)/$(E2FSPROGS_BINARY)
# This stuff is needed to work around GNU make deficiencies
findutils-target_binary: $(FINDUTILS_DIR)/$(FINDUTILS_BINARY)
- @if [ -L $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) ] ; then \
+ @if [ -L $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) ]; then \
rm -f $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY); fi
@if [ ! -f $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) -o $(TARGET_DIR)/$(FINDUTILS_TARGET_BINARY) \
- -ot $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) ] ; then \
+ -ot $(FINDUTILS_DIR)/$(FINDUTILS_BINARY) ]; then \
set -x; \
$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(FINDUTILS_DIR) install; \
$(STRIP) $(TARGET_DIR)/usr/lib/locate/* > /dev/null 2>&1; \
ifneq ($(FLEX_PATCH),)
toolchain/patch-kernel.sh $(FLEX_DIR) $(DL_DIR) $(FLEX_PATCH)
if [ -d $(FLEX_DIR)/debian/patches ]; then \
- toolchain/patch-kernel.sh $(FLEX_DIR) $(FLEX_DIR)/debian/patches \*.patch ; \
+ toolchain/patch-kernel.sh $(FLEX_DIR) $(FLEX_DIR)/debian/patches \*.patch; \
fi
endif
$(CONFIG_UPDATE) $(FLEX_DIR)
touch $@
$(FONTCONFIG_DIR)/.configured: $(FONTCONFIG_DIR)/.unpacked
- (cd $(FONTCONFIG_DIR); rm -rf config.cache ; \
+ (cd $(FONTCONFIG_DIR); rm -rf config.cache; \
$(AUTORECONF) && \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
GMP_HOST_DIR:=$(TOOL_BUILD_DIR)/gmp
$(GMP_DIR2)/.configured: $(GMP_DIR)/.unpacked
mkdir -p $(GMP_DIR2)
- (cd $(GMP_DIR2); rm -rf config.cache ; \
+ (cd $(GMP_DIR2); rm -rf config.cache; \
$(HOST_CONFIGURE_OPTS) \
$(GMP_CPP_FLAGS) \
$(GMP_DIR)/configure \
# This stuff is needed to work around GNU make deficiencies
grep-target_binary: $(GNUGREP_DIR)/$(GNUGREP_BINARY)
- @if [ -L $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) ] ; then \
+ @if [ -L $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) ]; then \
rm -f $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY); fi
@if [ ! -f $(GNUGREP_DIR)/$(GNUGREP_BINARY) -o $(TARGET_DIR)/$(GNUGREP_TARGET_BINARY) -ot \
- $(GNUGREP_DIR)/$(GNUGREP_BINARY) ] ; then \
+ $(GNUGREP_DIR)/$(GNUGREP_BINARY) ]; then \
set -x; \
rm -f $(TARGET_DIR)/bin/grep $(TARGET_DIR)/bin/egrep $(TARGET_DIR)/bin/fgrep; \
cp -a $(GNUGREP_DIR)/src/grep $(GNUGREP_DIR)/src/egrep \
iperf-source: $(DL_DIR)/$(IPERF_SOURCE)
iperf-clean:
- @if [ -d $(IPERF_KDIR)/Makefile ] ; then \
- $(MAKE) -C $(IPERF_DIR) clean ; \
+ @if [ -d $(IPERF_KDIR)/Makefile ]; then \
+ $(MAKE) -C $(IPERF_DIR) clean; \
fi
iperf-dirclean:
touch $@
$(IPSEC_TOOLS_DIR)/.configured: $(IPSEC_TOOLS_DIR)/.patched
- ( cd $(IPSEC_TOOLS_DIR); rm -rf config.cache ; \
+ ( cd $(IPSEC_TOOLS_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure \
$(IPSEC_TOOLS_CONFIG_FLAGS) \
);
# simpler than patching that cruft..
- (echo '#undef bzero' ; \
- echo '#define bzero(a, b) memset((a), 0, (b))' ; \
- echo '#undef bcopy' ; \
- echo '#define bcopy(src, dest, len) memmove(dest, src, len)' ; \
- echo '#undef index' ; \
- echo '#define index(a, b) strchr(a, b)' ; \
+ (echo '#undef bzero'; \
+ echo '#define bzero(a, b) memset((a), 0, (b))'; \
+ echo '#undef bcopy'; \
+ echo '#define bcopy(src, dest, len) memmove(dest, src, len)'; \
+ echo '#undef index'; \
+ echo '#define index(a, b) strchr(a, b)'; \
) >> $(IPSEC_TOOLS_DIR)/config.h
touch $@
$(KEXEC_CAT) $(DL_DIR)/$(KEXEC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
ifneq ($(KEXEC_PATCH),)
(cd $(KEXEC_DIR) && $(KEXEC_CAT) $(DL_DIR)/$(KEXEC_PATCH) | patch -p1; \
- for f in `cat debian/patches/00list` ; do \
- cat debian/patches/$$f | patch -p2 ; \
+ for f in `cat debian/patches/00list`; do \
+ cat debian/patches/$$f | patch -p2; \
done)
endif
toolchain/patch-kernel.sh $(KEXEC_DIR) package/kexec/ kexec\*.patch
ifneq ($(L2TP_PATCH),)
(cd $(L2TP_DIR) && $(L2TP_CAT) $(DL_DIR)/$(L2TP_PATCH) | patch -p1)
if [ -d $(L2TP_DIR)/debian/patches ]; then \
- toolchain/patch-kernel.sh $(L2TP_DIR) $(L2TP_DIR)/debian/patches \*.patch ; \
+ toolchain/patch-kernel.sh $(L2TP_DIR) $(L2TP_DIR)/debian/patches \*.patch; \
fi
endif
toolchain/patch-kernel.sh $(L2TP_DIR) package/l2tp/ l2tp\*.patch
$(STAGING_DIR)/lib/libfloat.so: $(LIBFLOAT_DIR)/libfloat.so.1
cp -dpf $(LIBFLOAT_DIR)/libfloat.a $(STAGING_DIR)/lib/libfloat.a
cp -dpf $(LIBFLOAT_DIR)/libfloat.so.1 $(STAGING_DIR)/lib/libfloat.so.1
- (cd $(STAGING_DIR)/lib ; ln -snf libfloat.so.1 libfloat.so)
+ (cd $(STAGING_DIR)/lib; ln -snf libfloat.so.1 libfloat.so)
cp -dpf $(LIBFLOAT_DIR)/libfloat.a $(TARGET_DIR)/usr/lib/libfloat.a
cp -dpf $(LIBFLOAT_DIR)/libfloat.so.1 $(TARGET_DIR)/lib/libfloat.so.1
$(STRIP) $(TARGET_DIR)/lib/libfloat.so.1 > /dev/null 2>&1
- (cd $(TARGET_DIR)/lib ; ln -snf libfloat.so.1 libfloat.so)
- (cd $(TARGET_DIR)/usr/lib ; ln -snf /lib/libfloat.so libfloat.so)
+ (cd $(TARGET_DIR)/lib; ln -snf libfloat.so.1 libfloat.so)
+ (cd $(TARGET_DIR)/usr/lib; ln -snf /lib/libfloat.so libfloat.so)
libfloat: $(STAGING_DIR)/lib/libfloat.so
libid3tag-source: $(DL_DIR)/$(LIBID3TAG_SOURCE)
libid3tag-clean:
- @if [ -d $(LIBID3TAG_DIR)/Makefile ] ; then \
- $(MAKE) -C $(LIBID3TAG_DIR) clean ; \
+ @if [ -d $(LIBID3TAG_DIR)/Makefile ]; then \
+ $(MAKE) -C $(LIBID3TAG_DIR) clean; \
fi
rm -f $(STAGING_DIR)/$(LIBID3TAG_TARGET_BIN)
rm -f $(TARGET_DIR)/$(LIBID3TAG_TARGET_BIN)
libmad-source: $(DL_DIR)/$(LIBMAD_SOURCE)
libmad-clean:
- @if [ -d $(LIBMAD_DIR)/Makefile ] ; then \
- $(MAKE) -C $(LIBMAD_DIR) clean ; \
+ @if [ -d $(LIBMAD_DIR)/Makefile ]; then \
+ $(MAKE) -C $(LIBMAD_DIR) clean; \
fi
rm -f $(STAGING_DIR)/usr/lib/libmad.*
rm -f $(STAGING_DIR)/usr/include/mad.h
touch $@
$(LIBPCAP_DIR)/.configured: $(LIBPCAP_DIR)/.unpacked
- (cd $(LIBPCAP_DIR) ; rm -rf config.cache ; \
+ (cd $(LIBPCAP_DIR); rm -rf config.cache; \
ac_cv_linux_vers=$(BR2_DEFAULT_KERNEL_HEADERS) \
BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" \
$(TARGET_CONFIGURE_OPTS) \
touch $@
$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.unpacked
- (cd $(LIBRAW1394_DIR); rm -rf config.cache ; \
+ (cd $(LIBRAW1394_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure \
touch $@
$(LIBSYSFS_DIR)/.configured: $(LIBSYSFS_DIR)/.unpacked
- (cd $(LIBSYSFS_DIR); rm -rf config.cache ; \
+ (cd $(LIBSYSFS_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure \
libxml2-source: $(DL_DIR)/$(LIBXML2_SOURCE)
libxml2-clean:
- @if [ -d $(LIBXML2_DIR)/Makefile ] ; then \
- $(MAKE) -C $(LIBXML2_DIR) clean ; \
+ @if [ -d $(LIBXML2_DIR)/Makefile ]; then \
+ $(MAKE) -C $(LIBXML2_DIR) clean; \
fi
rm -f $(STAGING_DIR)/usr/lib/libxml2.*
rm -f $(TARGET_DIR)/usr/lib/libxml2.*
(cd $(LIGHTTPD_DIR)&&$(LIGHTTPD_CAT) $(LIGHTTPD_PATCH_FILE)|patch -p1)
endif
if [ -d $(LIGHTTPD_DIR)/debian/patches ]; then \
- toolchain/patch-kernel.sh $(LIGHTTPD_DIR) $(LIGHTTPD_DIR)/debian/patches \*.dpatch ; \
+ toolchain/patch-kernel.sh $(LIGHTTPD_DIR) $(LIGHTTPD_DIR)/debian/patches \*.dpatch; \
fi
$(CONFIG_UPDATE) $(@D)
$(SED) 's/-lfs/-largefile/g;s/_lfs/_largefile/g' $(LIGHTTPD_DIR)/configure
@rm -rf $(TARGET_DIR)/usr/lib/lighttpd/*.la
$(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/lighttpd/*.so
$(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(LIGHTTPD_TARGET_BINARY)
- @if [ ! -f $(TARGET_DIR)/etc/lighttpd/lighttpd.conf ] ; then \
+ @if [ ! -f $(TARGET_DIR)/etc/lighttpd/lighttpd.conf ]; then \
$(INSTALL) -m 0644 -D $(LIGHTTPD_DIR)/doc/lighttpd.conf $(TARGET_DIR)/etc/lighttpd/lighttpd.conf; \
fi
$(INSTALL) -m 0755 -D package/lighttpd/rc.lighttpd $(TARGET_DIR)/etc/init.d/S99lighttpd
touch $@
$(LTRACE_DIR)/.configured: $(LTRACE_DIR)/.patched
- (cd $(LTRACE_DIR); rm -rf config.cache ; \
+ (cd $(LTRACE_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure \
touch $@
$(LZMA_HOST_DIR)/.configured: $(LZMA_HOST_DIR)/.unpacked
- (cd $(LZMA_HOST_DIR); rm -f config.cache ;\
+ (cd $(LZMA_HOST_DIR); rm -f config.cache;\
CC="$(HOSTCC)" \
CXX="$(HOSTCXX)" \
./configure \
.PHONY: lzma-host use-lzma-host-binary
use-lzma-host-binary:
- if [ ! -f "$(TOOL_BUILD_DIR)/bin/lzma" ] ; then \
- [ -d $(TOOL_BUILD_DIR)/bin ] || mkdir $(TOOL_BUILD_DIR)/bin ; \
- ln -sf "$(HOST_LZMA_IF_ANY)" "$(TOOL_BUILD_DIR)/bin/lzma" ; \
+ if [ ! -f "$(TOOL_BUILD_DIR)/bin/lzma" ]; then \
+ [ -d $(TOOL_BUILD_DIR)/bin ] || mkdir $(TOOL_BUILD_DIR)/bin; \
+ ln -sf "$(HOST_LZMA_IF_ANY)" "$(TOOL_BUILD_DIR)/bin/lzma"; \
fi
build-lzma-host-binary: $(LZMA_HOST_DIR)/src/lzma/lzma
touch $@
$(LZMA_TARGET_DIR)/.configured: $(LZMA_TARGET_DIR)/.unpacked
- (cd $(LZMA_TARGET_DIR); rm -f config.cache ;\
+ (cd $(LZMA_TARGET_DIR); rm -f config.cache;\
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
CFLAGS="$(TARGET_CFLAGS) $(LZMA_CFLAGS)" \
ifneq ($(MDADM_PATCH),)
(cd $(MDADM_DIR) && $(MDADM_CAT) $(MDADM_PATCH_FILE) | patch -p1)
if [ -d $(MDADM_DIR)/debian/patches ]; then \
- toolchain/patch-kernel.sh $(MDADM_DIR) $(MDADM_DIR)/debian/patches \*patch ; \
+ toolchain/patch-kernel.sh $(MDADM_DIR) $(MDADM_DIR)/debian/patches \*patch; \
fi
endif
#toolchain/patch-kernel.sh $(MDADM_DIR) package/mdadm mdadm-$(MDADM_VERSION)\*.patch
$(MICROCOM_DIR)/microcom: $(MICROCOM_DIR)/.configured
ifeq ($(BR2_PREFER_IMA),y)
- (cd $(MICROCOM_DIR) ; \
+ (cd $(MICROCOM_DIR); \
$(TARGET_CC) $(TARGET_CFLAGS) $(CFLAGS_COMBINE) \
$(CFLAGS_WHOLE_PROGRAM) -o $@ $(wildcard $(MICROCOM_DIR)/*.c); \
)
$(MICROPERL_DIR)/.configured: $(MICROPERL_DIR)/.source
ifeq ($(BR2_PACKAGE_AUTOMAKE),y)
# we need to build a perl for the host just for Errno.pm
- (cd $(MICROPERL_DIR) ; ./Configure -de ; \
- $(MAKE) CC="$(HOSTCC)" ; \
- $(SHELL) ext/util/make_ext nonxs Errno MAKE="$(firstword $(MAKE))" ; \
+ (cd $(MICROPERL_DIR); ./Configure -de; \
+ $(MAKE) CC="$(HOSTCC)"; \
+ $(SHELL) ext/util/make_ext nonxs Errno MAKE="$(firstword $(MAKE))"; \
)
endif
- (cd $(MICROPERL_DIR) ; chmod u+w uconfig.h ; . ./uconfig.sh ; \
- $(MAKE) -f Makefile.micro regen_uconfig ; \
+ (cd $(MICROPERL_DIR); chmod u+w uconfig.h; . ./uconfig.sh; \
+ $(MAKE) -f Makefile.micro regen_uconfig; \
$(SED) 's,PRIVLIB ".*,PRIVLIB "/$(MICROPERL_MODS_DIR)",' \
-e 's,PRIVLIB_EXP ".*,PRIVLIB_EXP "$(MICROPERL_MODS_DIR)",' \
-e 's,BIN ".*,BIN "/usr/bin",' \
- ./uconfig.h ; \
+ ./uconfig.h; \
)
touch $@
$(MAKE) -f Makefile.micro CC=$(TARGET_CC) \
OPTIMIZE="$(TARGET_CFLAGS)" -C $(MICROPERL_DIR)
ifeq ($(BR2_PACKAGE_AUTOMAKE),y)
- #(cd $(@D) ; \
- # CONFIG=uconfig.h $(SHELL) ext/util/make_ext nonxs Errno MAKE="$(firstword $(MAKE))" ; \
+ #(cd $(@D); \
+ # CONFIG=uconfig.h $(SHELL) ext/util/make_ext nonxs Errno MAKE="$(firstword $(MAKE))"; \
#)
endif
$(TARGET_DIR)/usr/bin/microperl: $(MICROPERL_DIR)/microperl
ifneq ($(MICROPERL_MODS),)
- (cd $(MICROPERL_DIR) ; \
- for i in $(patsubst %,$(TARGET_DIR)/$(MICROPERL_MODS_DIR)/%,$(dir $(MICROPERL_MODS))) ; do \
- [ -d $$i ] || mkdir -p $$i ; \
- done ; \
- for i in $(MICROPERL_MODS) ; do \
- cp -dpf lib/$$i $(TARGET_DIR)/$(MICROPERL_MODS_DIR)/$$i ; \
+ (cd $(MICROPERL_DIR); \
+ for i in $(patsubst %,$(TARGET_DIR)/$(MICROPERL_MODS_DIR)/%,$(dir $(MICROPERL_MODS))); do \
+ [ -d $$i ] || mkdir -p $$i; \
+ done; \
+ for i in $(MICROPERL_MODS); do \
+ cp -dpf lib/$$i $(TARGET_DIR)/$(MICROPERL_MODS_DIR)/$$i; \
done; \
)
endif
cp -dpf $(MICROPERL_DIR)/microperl $(TARGET_DIR)/usr/bin/microperl
- (cd $(TARGET_DIR)/usr/bin ; rm -f perl ; ln -s microperl perl ;)
+ (cd $(TARGET_DIR)/usr/bin; rm -f perl; ln -s microperl perl;)
microperl: uclibc $(TARGET_DIR)/usr/bin/microperl
(cd $(MPATROL_BUILD_DIR); \
cp -dpf lib*.so* $(TARGET_DIR)/usr/lib; \
cp -dpf mpatrol mprof mptrace mleak $(TARGET_DIR)/usr/bin)
- if [ ! -e $(TARGET_DIR)/lib/libpthread.so ] ; then \
+ if [ ! -e $(TARGET_DIR)/lib/libpthread.so ]; then \
ln -sf libpthread.so.0 $(TARGET_DIR)/lib/libpthread.so; fi
(cd $(MPATROL_DIR); \
cp -dpf bin/mp* bin/hexwords $(TARGET_DIR)/usr/bin; \
toolchain/patch-kernel.sh $(MPFR_DIR) package/mpfr/ \*.patch
$(CONFIG_UPDATE) $(MPFR_DIR)
ifneq ($(MPFR_PATCH),)
- ( cd $(MPFR_DIR) ; patch -p1 < $(DL_DIR)/$(MPFR_PATCH_FILE) ; )
+ ( cd $(MPFR_DIR); patch -p1 < $(DL_DIR)/$(MPFR_PATCH_FILE); )
endif
touch $@
nbd-source: $(DL_DIR)/$(NBD_SOURCE)
nbd-clean:
- @if [ -d $(NBD_DIR)/Makefile ] ; then \
- $(MAKE) -C $(NBD_DIR) clean ; \
+ @if [ -d $(NBD_DIR)/Makefile ]; then \
+ $(MAKE) -C $(NBD_DIR) clean; \
fi
nbd-dirclean:
cp -dpf $(NCURSES_DIR)/include/termcap.h $(TARGET_DIR)/usr/include/
cp -dpf $(NCURSES_DIR)/lib/libncurses.a $(TARGET_DIR)/usr/lib/
rm -f $(TARGET_DIR)/usr/lib/terminfo
- (cd $(TARGET_DIR)/usr/lib; ln -fs ../share/terminfo ; \
- ln -fs libncurses.a libcurses.a ; \
- ln -fs libncurses.a libtermcap.a ; \
+ (cd $(TARGET_DIR)/usr/lib; ln -fs ../share/terminfo; \
+ ln -fs libncurses.a libcurses.a; \
+ ln -fs libncurses.a libtermcap.a; \
)
(cd $(TARGET_DIR)/usr/include; ln -fs ncurses.h curses.h)
rm -f $(TARGET_DIR)/lib/libncurses.so
# Only install a few selected items...
mkdir -p $(TARGET_DIR)/usr/sbin
cp $(NETKITBASE_DIR)/$(NETKITBASE_BINARY) $(TARGET_DIR)/$(NETKITBASE_TARGET_BINARY)
- @if [ ! -f $(TARGET_DIR)/etc/inetd.conf ] ; then \
+ @if [ ! -f $(TARGET_DIR)/etc/inetd.conf ]; then \
mkdir -p $(TARGET_DIR)/etc; \
cp $(NETKITBASE_DIR)/etc.sample/inetd.conf $(TARGET_DIR)/etc/; \
$(SED) "s/^\([a-z]\)/#\1/;" $(TARGET_DIR)/etc/inetd.conf; \
echo 'rm -f $(TARGET_DIR)/usr/bin/event_rpcgen.py $(TARGET_DIR)/usr/sbin/nhfs* $(TARGET_DIR)/usr/sbin/nfsstat $(TARGET_DIR)/usr/sbin/showmount' >> $@
echo 'rm -rf $(TARGET_DIR)/usr/share/man' >> $@
echo '$(INSTALL) -m 0755 package/nfs-utils/S60nfs $(TARGET_DIR)/etc/init.d' >> $@
- echo -n 'for file in $(NFS_UTILS_TARGETS_) ; do rm -f $(TARGET_DIR)/' >> $@
+ echo -n 'for file in $(NFS_UTILS_TARGETS_); do rm -f $(TARGET_DIR)/' >> $@
echo -n "\$$" >> $@
echo "file; done" >> $@
echo 'rm -rf $(TARGET_DIR)/var/lib/nfs' >> $@
nfs-utils-clean:
rm -f $(TARGET_DIR)/etc/init.d/S60nfs
- for file in $(NFS_UTILS_TARGETS_y) ; do \
+ for file in $(NFS_UTILS_TARGETS_y); do \
rm -f $(TARGET_DIR)/$$file; \
done
-$(MAKE) -C $(NFS_UTILS_DIR) clean
$(OPENNTPD_DIR)/$(OPENNTPD_BINARY): $(OPENNTPD_DIR)/.configured
$(MAKE) CC=$(TARGET_CC) -C $(OPENNTPD_DIR)
- #(cd $(OPENNTPD_DIR) ; \
- # $(YACC) parse.y ; \
+ #(cd $(OPENNTPD_DIR); \
+ # $(YACC) parse.y; \
# $(TARGET_CC) $(TARGET_CFLAGS) $(CFLAGS_COMBINE) \
# $(CFLAGS_WHOLE_PROGRAM) -I$(OPENNTPD_DIR) \
# -D__dead="__attribute((__noreturn__))" -DHAVE_INTXX_T=1 \
# -include defines.h \
# -o $@ \
# ntpd.c buffer.c log.c imsg.c ntp.c ntp_msg.c y.tab.c config.c \
- # server.c client.c sensors.c util.c ; \
+ # server.c client.c sensors.c util.c; \
#)
$(STRIP) $@
touch $@
$(OPENSSH_DIR)/.configured: $(OPENSSH_DIR)/.unpacked
- (cd $(OPENSSH_DIR); rm -rf config.cache; autoconf ; \
+ (cd $(OPENSSH_DIR); rm -rf config.cache; autoconf; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure \
$(MAKE) CC=$(TARGET_CC) INSTALL_PREFIX=$(STAGING_DIR)/usr -C $(OPENSSL_DIR) install
cp -fa $(OPENSSL_DIR)/libcrypto.so* $(STAGING_DIR)/usr/lib/
chmod a-x $(STAGING_DIR)/usr/lib/libcrypto.so.0.9.7
- (cd $(STAGING_DIR)/usr/lib ; \
- ln -fs libcrypto.so.0.9.7 libcrypto.so ; \
- ln -fs libcrypto.so.0.9.7 libcrypto.so.0 ; \
+ (cd $(STAGING_DIR)/usr/lib; \
+ ln -fs libcrypto.so.0.9.7 libcrypto.so; \
+ ln -fs libcrypto.so.0.9.7 libcrypto.so.0; \
)
cp -fa $(OPENSSL_DIR)/libssl.so* $(STAGING_DIR)/usr/lib/
chmod a-x $(STAGING_DIR)/usr/lib/libssl.so.0.9.7
- (cd $(STAGING_DIR)/usr/lib ; \
- ln -fs libssl.so.0.9.7 libssl.so ; \
- ln -fs libssl.so.0.9.7 libssl.so.0 ; \
+ (cd $(STAGING_DIR)/usr/lib; \
+ ln -fs libssl.so.0.9.7 libssl.so; \
+ ln -fs libssl.so.0.9.7 libssl.so.0; \
)
touch -c $@
touch $(PCMCIA_DIR)/.patched
$(PCMCIA_DIR)/.configured: $(PCMCIA_DIR)/.patched
- ( cd $(PCMCIA_DIR) ; ./Configure --kernel=$(LINUX26_DIR) --noprompt \
+ ( cd $(PCMCIA_DIR); ./Configure --kernel=$(LINUX26_DIR) --noprompt \
--rcdir=/etc --arch=$(ARCH) --trust --srctree --nocardbus \
--sysv --kcc=$(KERNEL_CROSS)gcc --ucc=$(TARGET_CC) --ld=$(TARGET_CROSS)ld \
--target=$(TARGET_DIR))
$(PCMCIA_DIR)/cardmgr/cardmgr: $(PCMCIA_DIR)/.configured
$(MAKE) -C $(PCMCIA_DIR) -i all
- -A=`find $(PCMCIA_DIR) -type f -perm +111` ; \
+ -A=`find $(PCMCIA_DIR) -type f -perm +111`; \
for fo in $$A; do \
file $$fo | grep "ELF" | grep "executable" > /dev/null 2>&1; \
- if [ $$? = 0 ] ; then \
+ if [ $$? = 0 ]; then \
$(STRIP) $$fo; \
fi; \
done
$(dodir) $(PORTAGE_TARGET_DIR)/usr/sbin
$(dosym) newins $(PORTAGE_TARGET_DIR)/bin/donewins
for sbin in pkgmerge ebuild ebuild.sh etc-update dispatch-conf \
- archive-conf fixpackages env-update regenworld emerge-webrsync ; do \
+ archive-conf fixpackages env-update regenworld emerge-webrsync; do \
$(dosym) ../lib/portage/bin/$${sbin} $(TARGET_DIR)/usr/sbin/$${sbin}; \
done
- for bin in xpak repoman tbz2tool portageq g-cpan.pl quickpkg emerge ; do \
+ for bin in xpak repoman tbz2tool portageq g-cpan.pl quickpkg emerge; do \
$(dosym) ../lib/portage/bin/$${bin} $(TARGET_DIR)/usr/bin/$${bin}; \
done
$(TARGET_DIR)/$(SANDBOX_TARGET_BINARY): $(SANDBOX_DIR)/.compiled
rm -rf $(PORTAGE_TARGET_DIR)
for sbin in pkgmerge ebuild ebuild.sh etc-update dispatch-conf \
- archive-conf fixpackages env-update regenworld emerge-webrsync ; do \
+ archive-conf fixpackages env-update regenworld emerge-webrsync; do \
rm -f $(TARGET_DIR)/usr/sbin/$${sbin}; \
done
- for bin in xpak repoman tbz2tool portageq g-cpan.pl quickpkg emerge ; do \
+ for bin in xpak repoman tbz2tool portageq g-cpan.pl quickpkg emerge; do \
rm -f $(TARGET_DIR)/usr/bin/$${bin}; \
done
sandbox-clean:
for bin in uptime tload free w \
top vmstat watch skill \
snice kill sysctl pmap \
- pgrep pkill slabtop ; do \
- rm -f $(TARGET_DIR)/usr/bin/$${bin} ; \
+ pgrep pkill slabtop; do \
+ rm -f $(TARGET_DIR)/usr/bin/$${bin}; \
done
rm -f $(TARGET_DIR)/lib/libproc*
$(TARGET_DIR)/$(PROFTPD_TARGET_BINARY): $(PROFTPD_DIR)/$(PROFTPD_BINARY)
cp -a $(PROFTPD_DIR)/$(PROFTPD_BINARY) \
$(TARGET_DIR)/$(PROFTPD_TARGET_BINARY)
- @if [ ! -f $(TARGET_DIR)/etc/proftpd.conf ] ; then \
+ @if [ ! -f $(TARGET_DIR)/etc/proftpd.conf ]; then \
$(INSTALL) -m 0644 -D $(PROFTPD_DIR)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf; \
fi
$(INSTALL) -m 0755 package/proftpd/S50proftpd $(TARGET_DIR)/etc/init.d
psmisc-source: $(DL_DIR)/$(PSMISC_SOURCE)
psmisc-clean:
- for bin in fuser killall pstree oldfuser pstree.x11 ; do \
- rm -f $(TARGET_DIR)/bin/$${bin} ; \
+ for bin in fuser killall pstree oldfuser pstree.x11; do \
+ rm -f $(TARGET_DIR)/bin/$${bin}; \
done
psmisc-dirclean:
ifneq ($(QUAGGA_PATCH),)
(cd $(QUAGGA_DIR) && $(QUAGGA_CAT) $(DL_DIR)/$(QUAGGA_PATCH) | patch -p1)
if [ -d $(QUAGGA_DIR)/debian/patches ]; then \
- toolchain/patch-kernel.sh $(QUAGGA_DIR) $(QUAGGA_DIR)/debian/patches \*.patch ; \
+ toolchain/patch-kernel.sh $(QUAGGA_DIR) $(QUAGGA_DIR)/debian/patches \*.patch; \
fi
endif
touch $@
rdesktop-source: $(DL_DIR)/$(RDESKTOP_SOURCE)
rdesktop-clean:
- @if [ -d $(RDESKTOP_DIR)/Makefile ] ; then \
- $(MAKE) -C $(RDESKTOP_DIR) clean ; \
+ @if [ -d $(RDESKTOP_DIR)/Makefile ]; then \
+ $(MAKE) -C $(RDESKTOP_DIR) clean; \
fi
rdesktop-dirclean:
CONFIGDIR="${TARGET_DIR}/etc/samba" \
VARDIR="${TARGET_DIR}/var/log/samba" \
-C $(SAMBA_DIR) installservers installbin installcifsmount
- for file in $(SAMBA_TARGETS_) ; do \
+ for file in $(SAMBA_TARGETS_); do \
rm -f $(TARGET_DIR)/$$file; \
done
$(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$(SAMBA_TARGET_BINARY)
- for file in $(SAMBA_TARGETS_y) ; do \
+ for file in $(SAMBA_TARGETS_y); do \
$(STRIP) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/$$file; \
done
$(INSTALL) -m 0755 package/samba/S91smb $(TARGET_DIR)/etc/init.d
- @if [ ! -f $(TARGET_DIR)/etc/samba/smb.conf ] ; then \
+ @if [ ! -f $(TARGET_DIR)/etc/samba/smb.conf ]; then \
$(INSTALL) -m 0755 -D package/samba/simple.conf $(TARGET_DIR)/etc/samba/smb.conf; \
fi
rm -rf $(TARGET_DIR)/var/cache/samba
samba-clean:
rm -f $(TARGET_DIR)/$(SAMBA_TARGET_BINARY)
- for file in $(SAMBA_TARGETS_y) ; do \
+ for file in $(SAMBA_TARGETS_y); do \
rm -f $(TARGET_DIR)/$$file; \
done
rm -f $(TARGET_DIR)/etc/init.d/S91smb
touch $@
$(SDL_DIR)/.configured: $(SDL_DIR)/.unpacked
- (cd $(SDL_DIR); rm -rf config.cache ; \
+ (cd $(SDL_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
./configure \
ifneq ($(SETSERIAL_PATCH_FILE),)
toolchain/patch-kernel.sh $(SETSERIAL_DIR) $(DL_DIR) $(SETSERIAL_PATCH_FILE)
if [ -d $(SETSERIAL_DIR)/debian/patches ]; then \
- toolchain/patch-kernel.sh $(SETSERIAL_DIR) $(SETSERIAL_DIR)/debian/patches \*.patch ; \
+ toolchain/patch-kernel.sh $(SETSERIAL_DIR) $(SETSERIAL_DIR)/debian/patches \*.patch; \
fi
endif
touch $(SETSERIAL_DIR)/gorhack.h
endif
$(SETSERIAL_DIR)/.configured: $(SETSERIAL_DIR)/.unpacked
- (cd $(SETSERIAL_DIR); rm -rf config.cache ; \
+ (cd $(SETSERIAL_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
CFLAGS="$(TARGET_CFLAGS) $(SETSERIAL_CFLAGS)" \
socat-source: $(DL_DIR)/$(SOCAT_SOURCE)
socat-clean:
- @if [ -d $(SOCAT_WORKDIR)/Makefile ] ; then \
- $(MAKE) -C $(SOCAT_WORKDIR) clean ; \
+ @if [ -d $(SOCAT_WORKDIR)/Makefile ]; then \
+ $(MAKE) -C $(SOCAT_WORKDIR) clean; \
fi
socat-dirclean:
sqlite-source: $(DL_DIR)/$(SQLITE_SOURCE)
sqlite-clean:
- @if [ -d $(SQLITE_DIR)/Makefile ] ; then \
- $(MAKE) -C $(SQLITE_DIR) clean ; \
+ @if [ -d $(SQLITE_DIR)/Makefile ]; then \
+ $(MAKE) -C $(SQLITE_DIR) clean; \
fi
sqlite-dirclean:
CFLAGS="$(TARGET_CFLAGS)" $(MAKE) CC=$(TARGET_CC) -C $(SYSVINIT_DIR)/src
$(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY): $(SYSVINIT_DIR)/$(SYSVINIT_BINARY)
- for x in halt init shutdown ; do \
- install -D $(SYSVINIT_DIR)/src/$$x $(TARGET_DIR)/sbin/$$x || exit 1 ; \
+ for x in halt init shutdown; do \
+ install -D $(SYSVINIT_DIR)/src/$$x $(TARGET_DIR)/sbin/$$x || exit 1; \
done
sysvinit: uclibc ncurses $(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY)
sysvinit-source: $(DL_DIR)/$(SYSVINIT_SOURCE)
sysvinit-clean:
- for x in halt init shutdown ; do \
- rm -f $(TARGET_DIR)/sbin/$$x || exit 1 ; \
+ for x in halt init shutdown; do \
+ rm -f $(TARGET_DIR)/sbin/$$x || exit 1; \
done
-$(MAKE) -C $(SYSVINIT_DIR) clean
# This stuff is needed to work around GNU make deficiencies
tar-target_binary: $(GNUTAR_DIR)/$(GNUTAR_BINARY)
- @if [ -L $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) ] ; then \
+ @if [ -L $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) ]; then \
rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); fi
@if [ ! -f $(GNUTAR_DIR)/$(GNUTAR_BINARY) -o $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY) \
- -ot $(GNUTAR_DIR)/$(GNUTAR_BINARY) ] ; then \
+ -ot $(GNUTAR_DIR)/$(GNUTAR_BINARY) ]; then \
set -x; \
rm -f $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); \
cp -a $(GNUTAR_DIR)/$(GNUTAR_BINARY) $(TARGET_DIR)/$(GNUTAR_TARGET_BINARY); fi
$(DHCPDUMP_DIR)/.configured: $(DHCPDUMP_DIR)/.unpacked
( \
- cd $(DHCPDUMP_DIR) ; \
+ cd $(DHCPDUMP_DIR); \
BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_CONFIGURE_ARGS) \
$(TCPDUMP_DIR)/.configured: $(TCPDUMP_DIR)/.unpacked
( \
- cd $(TCPDUMP_DIR) ; \
+ cd $(TCPDUMP_DIR); \
ac_cv_linux_vers=$(BR2_DEFAULT_KERNEL_HEADERS) \
BUILD_CC=$(TARGET_CC) HOSTCC="$(HOSTCC)" \
$(TARGET_CONFIGURE_OPTS) \
# This stuff is needed to work around GNU make deficiencies
$(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY): $(TFTP_HPA_DIR)/$(TFTP_HPA_BINARY)
- @if [ -L $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY) ] ; then \
+ @if [ -L $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY) ]; then \
rm -f $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY); fi
@if [ ! -f $(TFTP_HPA_DIR)/$(TFTP_HPA_BINARY) -o $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY) \
- -ot $(TFTP_HPA_DIR)/$(TFTP_HPA_BINARY) ] ; then \
+ -ot $(TFTP_HPA_DIR)/$(TFTP_HPA_BINARY) ]; then \
set -x; \
rm -f $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY); \
cp -a $(TFTP_HPA_DIR)/$(TFTP_HPA_BINARY) $(TARGET_DIR)/$(TFTP_HPA_TARGET_BINARY); fi
- @if [ ! -f $(TARGET_DIR)/etc/init.d/S80tftpd-hpa ] ; then \
+ @if [ ! -f $(TARGET_DIR)/etc/init.d/S80tftpd-hpa ]; then \
$(INSTALL) -m 0755 package/tftpd/S80tftpd-hpa $(TARGET_DIR)/etc/init.d; \
fi
$(TINYX_XFBDEV): $(TINYX_DIR)/.configure
rm -f $(TINYX_BINX)/Xfbdev
#make World CROSSCOMPILEFLAGS="CROSSCOMPILEDIR=<cross compiler dir>"
- #( cd $(TINYX_DIR) ; $(MAKE) World CROSSCOMPILEFLAGS="CROSSCOMPILEDIR=$(STAGING_DIR)/bin" )
- #( cd $(TINYX_DIR) ; $(TARGET_CONFIGURE_OPTS) $(MAKE) World )
+ #( cd $(TINYX_DIR); $(MAKE) World CROSSCOMPILEFLAGS="CROSSCOMPILEDIR=$(STAGING_DIR)/bin" )
+ #( cd $(TINYX_DIR); $(TARGET_CONFIGURE_OPTS) $(MAKE) World )
#
#mv $(TINYX_DIR)/Makefile $(TINYX_DIR)/Makefile.xxxx
#echo "AS=$(TARGET_CROSS)as" > $(TINYX_DIR)/Makefile
#echo "RANLIB=$(TARGET_CROSS)ranlib" >> $(TINYX_DIR)/Makefile
#echo "OBJCOPY=$(TARGET_CROSS)objcopy" >> $(TINYX_DIR)/Makefile
#cat $(TINYX_DIR)/Makefile.xxxx >> $(TINYX_DIR)/Makefile
- ( cd $(TINYX_DIR) ; $(MAKE) World )
+ ( cd $(TINYX_DIR); $(MAKE) World )
#
# Install x-includes and x-libraries in $(STAGING_DIR)/usr/X11R6/
$(TINYX_BINX)/Xfbdev: $(TINYX_XFBDEV)
-mkdir $(TARGET_DIR)/usr/X11R6
-mkdir $(TINYX_BINX)
- for file in $(TINYX_APPS) ; do \
- cp -f $(TINYX_DIR)/programs/$$file $(TINYX_BINX) ; \
- $(STRIP) $(TINYX_PROGS)/$$file ; \
+ for file in $(TINYX_APPS); do \
+ cp -f $(TINYX_DIR)/programs/$$file $(TINYX_BINX); \
+ $(STRIP) $(TINYX_PROGS)/$$file; \
done
cp $(TINYX_DIR)/programs/Xserver/Xfbdev $(TINYX_BINX)
$(STRIP) $(TINYX_BINX)/Xfbdev
#
# After we have executables installed, install the libraries.
$(TINYX_LIBX)/libX11.so.6.2: $(TINYX_XFBDEV)
- for dirs in $(TINYX_LIBS) ; do \
- file=`find $(TINYX_LDIR)/$$dirs -type f -iname "lib$$dirs.so*"` ; \
- $(STRIP) --strip-unneeded $$file ; \
- cp -f $$file $(TINYX_LIBX) ; \
- file=`find $(TINYX_LDIR)/$$dirs -type l -iname "lib$$dirs.so*"` ; \
- cp -pRf $$file $(TINYX_LIBX) ; \
+ for dirs in $(TINYX_LIBS); do \
+ file=`find $(TINYX_LDIR)/$$dirs -type f -iname "lib$$dirs.so*"`; \
+ $(STRIP) --strip-unneeded $$file; \
+ cp -f $$file $(TINYX_LIBX); \
+ file=`find $(TINYX_LDIR)/$$dirs -type l -iname "lib$$dirs.so*"`; \
+ cp -pRf $$file $(TINYX_LIBX); \
done
tinyx: zlib $(STAGING_DIR)/usr/X11R6/lib/libX11.so.6.2 \
$(TINYX_XFBDEV): $(TINYX_DIR)/.configure
rm -f $(TINYX_BINX)/Xfbdev
#make World CROSSCOMPILEFLAGS="CROSSCOMPILEDIR=<cross compiler dir>"
- #( cd $(TINYX_DIR) ; $(MAKE) World CROSSCOMPILEFLAGS="CROSSCOMPILEDIR=$(STAGING_DIR)/bin" )
- #( cd $(TINYX_DIR) ; $(MAKE) $(TARGET_CONFIGURE_OPTS) World )
+ #( cd $(TINYX_DIR); $(MAKE) World CROSSCOMPILEFLAGS="CROSSCOMPILEDIR=$(STAGING_DIR)/bin" )
+ #( cd $(TINYX_DIR); $(MAKE) $(TARGET_CONFIGURE_OPTS) World )
#
#mv $(TINYX_DIR)/Makefile $(TINYX_DIR)/Makefile.xxxx
#echo "AS=$(TARGET_CROSS)as" > $(TINYX_DIR)/Makefile
#echo "RANLIB=$(TARGET_CROSS)ranlib" >> $(TINYX_DIR)/Makefile
#echo "OBJCOPY=$(TARGET_CROSS)objcopy" >> $(TINYX_DIR)/Makefile
#cat $(TINYX_DIR)/Makefile.xxxx >> $(TINYX_DIR)/Makefile
- ( cd $(TINYX_DIR) ; $(MAKE) $(TARGET_CONFIGURE_OPTS) World )
+ ( cd $(TINYX_DIR); $(MAKE) $(TARGET_CONFIGURE_OPTS) World )
#
# Install x-includes and x-libraries in $(STAGING_DIR)/usr/X11R6/
$(TINYX_BINX)/Xfbdev: $(TINYX_XFBDEV)
-mkdir $(TARGET_DIR)/usr/X11R6
-mkdir $(TINYX_BINX)
- for file in $(TINYX_APPS) ; do \
- cp -f $(TINYX_DIR)/programs/$$file $(TINYX_BINX) ; \
- $(STRIP) $(TINYX_PROGS)/$$file ; \
+ for file in $(TINYX_APPS); do \
+ cp -f $(TINYX_DIR)/programs/$$file $(TINYX_BINX); \
+ $(STRIP) $(TINYX_PROGS)/$$file; \
done
cp $(TINYX_DIR)/programs/Xserver/Xfbdev $(TINYX_BINX)
$(STRIP) $(TINYX_BINX)/Xfbdev
#
# After we have executables installed, install the libraries.
$(TINYX_LIBX)/libX11.so.6.2: $(TINYX_XFBDEV)
- for dirs in $(TINYX_LIBS) ; do \
- file=`find $(TINYX_LDIR)/$$dirs -type f -iname "lib$$dirs.so*"` ; \
- $(STRIP) --strip-unneeded $$file ; \
- cp -f $$file $(TINYX_LIBX) ; \
- file=`find $(TINYX_LDIR)/$$dirs -type l -iname "lib$$dirs.so*"` ; \
- cp -pRf $$file $(TINYX_LIBX) ; \
+ for dirs in $(TINYX_LIBS); do \
+ file=`find $(TINYX_LDIR)/$$dirs -type f -iname "lib$$dirs.so*"`; \
+ $(STRIP) --strip-unneeded $$file; \
+ cp -f $$file $(TINYX_LIBX); \
+ file=`find $(TINYX_LDIR)/$$dirs -type l -iname "lib$$dirs.so*"`; \
+ cp -pRf $$file $(TINYX_LIBX); \
done
tinyx: zlib $(STAGING_DIR)/usr/X11R6/lib/libX11.so.6.2 \
$(TARGET_DIR)/$(USBMOUNT_TARGET_BINARY): $(USBMOUNT_DIR)/.unpacked
$(INSTALL) -m 0755 -D $(USBMOUNT_DIR)/usbmount $(TARGET_DIR)/$(USBMOUNT_TARGET_BINARY)
- @if [ ! -f $(TARGET_DIR)/etc/usbmount/usbmount.conf ] ; then \
+ @if [ ! -f $(TARGET_DIR)/etc/usbmount/usbmount.conf ]; then \
$(INSTALL) -m 0644 -D $(USBMOUNT_DIR)/usbmount.conf $(TARGET_DIR)/etc/usbmount/usbmount.conf; \
fi
touch -c $@
vpnc-source: $(DL_DIR)/$(VPNC_SOURCE)
vpnc-clean:
- @if [ -d $(VPNC_DIR)/Makefile ] ; then \
- $(MAKE) -C $(VPNC_DIR) clean ; \
+ @if [ -d $(VPNC_DIR)/Makefile ]; then \
+ $(MAKE) -C $(VPNC_DIR) clean; \
fi
rm -f $(STAGING_DIR)/usr/bin/vpnc
touch $@
$(MESA3D_DIR)/.configured: $(MESA3D_DIR)/.extracted
- ( export $(TARGET_CONFIGURE_OPTS) ; \
+ ( export $(TARGET_CONFIGURE_OPTS); \
echo "DRI_DIRS = $(MESA_DRIVERS)" && \
echo "OPT_FLAGS = $(TARGET_CFLAGS)" && \
echo "CC = $(TARGET_CC)" && \
$(MESA3D_DIR)/.built: BR2_JLEVEL=1
$(MESA3D_DIR)/.built: $(MESA3D_DIR)/.configured
- gccinc=$$($(TARGET_CC) -print-search-dirs | grep '^install:' | sed 's@^install: @@')include ; \
+ gccinc=$$($(TARGET_CC) -print-search-dirs | grep '^install:' | sed 's@^install: @@')include; \
rm -f $(MESA3D_DIR)/config/current
env $(MESA_BUILD_ENV) $(MAKE) \
MKDEP="makedepend -I$$gccinc" \
--disable-IPv6 \
$(DISABLE_NLS) \
\
- );
+ )
touch $@
$(XAPP_XMAN_DIR)/.built: $(XAPP_XMAN_DIR)/.configured
--disable-IPv6 \
$(DISABLE_NLS) \
\
- );
+ )
touch $@
$(XDATA_XCURSOR_THEMES_DIR)/.built: $(XDATA_XCURSOR_THEMES_DIR)/.configured
LDFLAGS="-L$(E2FSPROGS_DIR)/lib" -C $(XFSPROGS_DIR)
ifeq ($(XFSPROGS_CONFIG_SHARED),--enable-shared)
( \
- cd $(XFSPROGS_DIR) ; \
- $(STRIP) $(XFSPROGS_STRIP) ; \
+ cd $(XFSPROGS_DIR); \
+ $(STRIP) $(XFSPROGS_STRIP); \
$(STRIP) $(join $(dir $(XFSPROGS_STRIP_LIBDEP)), \
$(addprefix .libs/,$(notdir $(XFSPROGS_STRIP_LIBDEP)))) \
)
$(STRIP) $(XFSPROGS_DIR)/lib*/.libs/lib*.so.*.*
else
( \
- cd $(XFSPROGS_DIR) ; \
+ cd $(XFSPROGS_DIR); \
$(STRIP) $(XFSPROGS_STRIP) $(XFSPROGS_STRIP_LIBDEP) \
)
$(STRIP) $(XFSPROGS_DIR)/lib*/lib*.so.*.*
$(XORG_XSERVER): $(XORG_DIR)/.configured
rm -f $(TARGET_XSERVER) $(XORG_XSERVER)
- ( cd $(XORG_DIR) ; $(MAKE) \
+ ( cd $(XORG_DIR); $(MAKE) \
PKG_CONFIG=$(STAGING_DIR)/$(PKGCONFIG_TARGET_BINARY) \
World XCURSORGEN=xcursorgen MKFONTSCALE=mkfontscale )
touch -c $(XORG_XSERVER)
$(TARGET_XSERVER): $(XORG_XSERVER)
mkdir -p $(XORG_BINX)
- for file in $(XORG_APPS) ; do \
- cp -f $(XORG_DIR)/programs/$$file $(XORG_BINX) ; \
- chmod a+x $(XORG_PROGS)/$$file ; \
- $(STRIP) $(XORG_PROGS)/$$file || /bin/true ; \
+ for file in $(XORG_APPS); do \
+ cp -f $(XORG_DIR)/programs/$$file $(XORG_BINX); \
+ chmod a+x $(XORG_PROGS)/$$file; \
+ $(STRIP) $(XORG_PROGS)/$$file || /bin/true; \
done
cp $(XORG_XSERVER) $(TARGET_XSERVER)
(cd $(XORG_BINX); ln -snf $(XSERVER_BINARY) X)
$(STRIP) $(TARGET_XSERVER)
mkdir -p $(XORG_LIBX)/modules
cp -LRf $(XORG_DIR)/exports/lib/modules/ $(XORG_LIBX)/
- ( cd $(XORG_DIR)/fonts ; $(MAKE) \
+ ( cd $(XORG_DIR)/fonts; $(MAKE) \
DESTDIR=$(TARGET_DIR) install XCURSORGEN=xcursorgen MKFONTSCALE=mkfontscale )
cp -LRf $(XORG_DIR)/fonts/bdf/misc/7x14.bdf $(XORG_LIBX)/X11/fonts/misc/
cp -LRf $(XORG_DIR)/fonts/bdf/misc/7x14-L1.bdf $(XORG_LIBX)/X11/fonts/misc/
$(XORG_LIBX)/libX11.so.6.2: $(TARGET_XSERVER) $(XORG_LIBX)/X11/fonts/ttf-dejavu/DejaVuSansMono.ttf
mkdir -p $(XORG_LIBX)
- set -e; for dirs in $(XORG_LIBS) ; do \
- file=`find $(XORG_LDIR)/$$dirs -type f -iname "*$$dirs.so*"` ; \
- $(STRIP) $(STRIP_STRIP_UNNEEDED) $$file ; \
- cp -f $$file $(XORG_LIBX) ; \
- file=`find $(XORG_LDIR)/$$dirs -type l -iname "*$$dirs.so*"` ; \
- cp -pRf $$file $(XORG_LIBX) ; \
+ set -e; for dirs in $(XORG_LIBS); do \
+ file=`find $(XORG_LDIR)/$$dirs -type f -iname "*$$dirs.so*"`; \
+ $(STRIP) $(STRIP_STRIP_UNNEEDED) $$file; \
+ cp -f $$file $(XORG_LIBX); \
+ file=`find $(XORG_LDIR)/$$dirs -type l -iname "*$$dirs.so*"`; \
+ cp -pRf $$file $(XORG_LIBX); \
done
(cd $(TARGET_DIR)/usr/lib; ln -snf $(TARGET_LIBX) X11)
touch $(TARGET_DIR)/etc/ld.so.conf
- if [ "`grep -c '$(TARGET_LIBX)' $(TARGET_DIR)/etc/ld.so.conf`" = "0" ] ; then \
+ if [ "`grep -c '$(TARGET_LIBX)' $(TARGET_DIR)/etc/ld.so.conf`" = "0" ]; then \
echo "$(TARGET_LIBX)" >> $(TARGET_DIR)/etc/ld.so.conf; \
fi
touch -c $(XORG_LIBX)/libX11.so.6.2
touch $@
$(ZLIB_DIR)/.configured: $(ZLIB_DIR)/.patched
- (cd $(ZLIB_DIR); rm -rf config.cache ; \
+ (cd $(ZLIB_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_ARGS) \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(ZLIB_CFLAGS)" \
- which symlinks
clooproot: cloop check-tools $(IMAGE).cramfs ### cramfsroot
- -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
+ -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true
ifneq ($(BR2_HAVE_MANPAGES),y)
@rm -rf $(TARGET_DIR)/usr/man
@rm -rf $(TARGET_DIR)/usr/share/man
ln -s sbin/init $(TARGET_DIR)/init
$(CPIO_BASE): host-fakeroot makedevs cpioroot-init
- -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
+ -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true
ifneq ($(BR2_HAVE_MANPAGES),y)
@rm -rf $(TARGET_DIR)/usr/man
endif
toolchain/patch-kernel.sh $(CRAMFS_DIR) target/cramfs/ cramfs\*.patch
$(CRAMFS_DIR)/mkcramfs: $(CRAMFS_DIR)
- $(MAKE) CFLAGS="-Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" -C $(CRAMFS_DIR);
+ $(MAKE) CFLAGS="-Wall -O2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" -C $(CRAMFS_DIR)
touch -c $@
cramfs: $(CRAMFS_DIR)/mkcramfs
CRAMFS_TARGET=$(IMAGE).cramfs
cramfsroot: host-fakeroot makedevs cramfs
- #-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) --strip-unneeded 2>/dev/null || true;
- -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
+ #-@find $(TARGET_DIR)/lib -type f -name \*.so\* | xargs $(STRIP) --strip-unneeded 2>/dev/null || true
+ -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true
ifneq ($(BR2_HAVE_MANPAGES),y)
@rm -rf $(TARGET_DIR)/usr/man
endif
touch $(LINUX26_DIR)/.unpacked
$(LINUX26_KCONFIG):
- @if [ ! -f "$(LINUX26_KCONFIG)" ] ; then \
+ @if [ ! -f "$(LINUX26_KCONFIG)" ]; then \
echo ""; \
echo "You should create a .config for your kernel"; \
echo "and install it as $(LINUX26_KCONFIG)"; \
echo ""; \
sleep 5; \
- fi;
+ fi
$(LINUX26_DIR)/.patched: $(LINUX26_DIR)/.unpacked
#toolchain/patch-kernel.sh $(LINUX26_DIR) $(LINUX26_PATCH_DIR)
UBOOT_TARGET:=$(IMAGE).uboot
ubootroot: host-fakeroot makedevs uboot
- -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
+ -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true
@rm -rf $(TARGET_DIR)/usr/man
@rm -rf $(TARGET_DIR)/usr/info
-/sbin/ldconfig -r $(TARGET_DIR) 2>/dev/null
touch $(LINUX_DIR)/.unpacked
$(LINUX_KCONFIG):
- @if [ ! -f "$(LINUX_KCONFIG)" ] ; then \
+ @if [ ! -f "$(LINUX_KCONFIG)" ]; then \
echo ""; \
echo "You should create a .config for your kernel"; \
echo "and install it as $(LINUX_KCONFIG)"; \
echo ""; \
sleep 5; \
- fi;
+ fi
$(LINUX_DIR)/.configured $(BUILD_DIR)/linux/.configured: $(LINUX_DIR)/.unpacked $(LINUX_KCONFIG)
$(SED) "s,^ARCH.*,ARCH=$(LINUX_KARCH),g;" $(LINUX_DIR)/Makefile
touch $(LINUX_DIR)/.unpacked
$(LINUX_KCONFIG):
- @if [ ! -f "$(LINUX_KCONFIG)" ] ; then \
+ @if [ ! -f "$(LINUX_KCONFIG)" ]; then \
echo ""; \
echo "You should create a .config for your kernel"; \
echo "and install it as $(LINUX_KCONFIG)"; \
echo ""; \
sleep 5; \
- fi;
+ fi
$(LINUX_DIR)/.configured $(BUILD_DIR)/linux/.configured: $(LINUX_DIR)/.unpacked $(LINUX_KCONFIG)
$(SED) "s,^ARCH.*,ARCH=$(LINUX_KARCH),g;" $(LINUX_DIR)/Makefile
touch $(LINUX_DIR)/.unpacked
$(LINUX_KCONFIG):
- @if [ ! -f "$(LINUX_KCONFIG)" ] ; then \
+ @if [ ! -f "$(LINUX_KCONFIG)" ]; then \
echo ""; \
echo "You should create a .config for your kernel"; \
echo "and install it as $(LINUX_KCONFIG)"; \
sleep 5; \
cd $(LINUX_DIR); \
$(MAKE) menuconfig; \
- fi;
+ fi
$(LINUX_DIR)/.configured $(BUILD_DIR)/linux/.configured: $(LINUX_DIR)/.unpacked $(LINUX_KCONFIG)
$(SED) "s,^CROSS_COMPILE.*,CROSS_COMPILE=$(KERNEL_CROSS),g;" $(LINUX_DIR)/Makefile
touch $(LINUX_DIR)/.unpacked
$(LINUX_KCONFIG):
- @if [ ! -f "$(LINUX_KCONFIG)" ] ; then \
+ @if [ ! -f "$(LINUX_KCONFIG)" ]; then \
echo ""; \
echo "You should create a .config for your kernel"; \
echo "and install it as $(LINUX_KCONFIG)"; \
echo ""; \
sleep 5; \
- fi;
+ fi
$(LINUX_DIR)/.configured $(BUILD_DIR)/linux/.configured: $(LINUX_DIR)/.unpacked $(LINUX_KCONFIG)
$(SED) "s,^ARCH.*,ARCH=$(LINUX_KARCH),g;" $(LINUX_DIR)/Makefile
./configure \
CC="$(HOSTCC)" \
--prefix=$(STAGING_DIR) \
- );
+ )
touch $@
$(GENEXT2_DIR)/genext2fs: $(GENEXT2_DIR)/.configured
# Use fakeroot so genext2fs believes the previous fakery
ifeq ($(strip $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)),0)
GENEXT2_REALSIZE=`LC_ALL=C du -s -c -k $(TARGET_DIR) | grep total | sed -e "s/total//"`; \
- GENEXT2_ADDTOROOTSIZE=`if [ $$GENEXT2_REALSIZE -ge 20000 ] ; then echo 16384; else echo 2400; fi`; \
+ GENEXT2_ADDTOROOTSIZE=`if [ $$GENEXT2_REALSIZE -ge 20000 ]; then echo 16384; else echo 2400; fi`; \
GENEXT2_SIZE=`expr $$GENEXT2_REALSIZE + $$GENEXT2_ADDTOROOTSIZE`; \
GENEXT2_ADDTOINODESIZE=`find $(TARGET_DIR) | wc -l`; \
GENEXT2_INODES=`expr $$GENEXT2_ADDTOINODESIZE + 400`; \
$(INITRAMFS_TARGET) initramfs: host-fakeroot makedevs
rm -f $(TARGET_DIR)/init
ln -s sbin/init $(TARGET_DIR)/init
- -find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
+ -find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true
ifneq ($(BR2_HAVE_MANPAGES),y)
rm -rf $(TARGET_DIR)/usr/man
endif
$(MKISOFS_DIR)/.configured: $(MKISOFS_DIR)/.unpacked
(cd $(MKISOFS_DIR); rm -rf config.cache; \
- );
+ )
touch $(MKISOFS_DIR)/.configured
$(MKISOFS_TARGET): $(MKISOFS_DIR)/.configured
# just built.
#
$(JFFS2_TARGET): host-fakeroot makedevs mtd-host
- -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
+ -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true
ifneq ($(BR2_HAVE_MANPAGES),y)
@rm -rf $(TARGET_DIR)/usr/man
@rm -rf $(TARGET_DIR)/usr/share/man
touch $@
$(SQUASHFS_DIR)/squashfs-tools/mksquashfs: $(SQUASHFS_DIR)/.unpacked
- $(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools;
+ $(MAKE) -C $(SQUASHFS_DIR)/squashfs-tools
squashfs: $(SQUASHFS_DIR)/squashfs-tools/mksquashfs
SQUASHFS_TARGET:=$(IMAGE).squashfs
squashfsroot: host-fakeroot makedevs squashfs
- -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
+ -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true
ifneq ($(BR2_HAVE_MANPAGES),y)
@rm -rf $(TARGET_DIR)/usr/man
endif
endif
tarroot: host-fakeroot makedevs
- -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true;
+ -@find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIP) 2>/dev/null || true
ifneq ($(BR2_HAVE_MANPAGES),y)
@rm -rf $(TARGET_DIR)/usr/man
endif
--infodir=/usr/info \
--disable-auto-linux-mem-opt \
$(GRUB_CONFIG-y) \
- );
+ )
touch $@
$(GRUB_DIR)/$(GRUB_BINARY): $(GRUB_DIR)/.configured
--disable-auto-linux-mem-opt \
$(DISABLE_LARGEFILE) \
$(GRUB2_CONFIG-y) \
- );
+ )
touch $@
$(GRUB2_DIR)/$(GRUB2_BINARY): $(GRUB2_DIR)/.configured
$(BINUTILS_DIR1)/.configured: $(BINUTILS_DIR)/.patched
mkdir -p $(BINUTILS_DIR1)
- (cd $(BINUTILS_DIR1); rm -rf config.cache ; \
+ (cd $(BINUTILS_DIR1); rm -rf config.cache; \
$(HOST_CONFIGURE_OPTS) \
$(BINUTILS_DIR)/configure \
--prefix=$(BR2_SYSROOT_PREFIX)/usr \
BINUTILS_DIR2:=$(BUILD_DIR)/binutils-$(BINUTILS_VERSION)-target
$(BINUTILS_DIR2)/.configured: $(BINUTILS_DIR)/.patched
mkdir -p $(BINUTILS_DIR2)
- (cd $(BINUTILS_DIR2); rm -rf config.cache ; \
+ (cd $(BINUTILS_DIR2); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(BINUTILS_DIR)/configure \
--prefix=/usr \
rm -rf $(STAGING_DIR)/usr/bin/$(GNU_TARGET_NAME)-gcc
rm -rf $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc
rm -rf $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gcc
- if [ -f $(STAGING_DIR)/usr/bin-ccache/$(REAL_GNU_TARGET_NAME)-gcc ] ; then \
+ if [ -f $(STAGING_DIR)/usr/bin-ccache/$(REAL_GNU_TARGET_NAME)-gcc ]; then \
mv $(STAGING_DIR)/usr/bin-ccache/$(REAL_GNU_TARGET_NAME)-gcc $(STAGING_DIR)/usr/bin/; \
(cd $(STAGING_DIR)/usr/bin; \
ln -fs $(REAL_GNU_TARGET_NAME)-gcc $(REAL_GNU_TARGET_NAME)-cc; \
ln -fs $(REAL_GNU_TARGET_NAME)-gcc $(GNU_TARGET_NAME)-cc; \
ln -fs $(REAL_GNU_TARGET_NAME)-gcc $(GNU_TARGET_NAME)-gcc); \
fi
- if [ -f $(STAGING_DIR)/usr/bin-ccache/$(REAL_GNU_TARGET_NAME)-c++ ] ; then \
+ if [ -f $(STAGING_DIR)/usr/bin-ccache/$(REAL_GNU_TARGET_NAME)-c++ ]; then \
rm -f $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-c++; \
mv $(STAGING_DIR)/usr/bin-ccache/$(REAL_GNU_TARGET_NAME)-c++ $(STAGING_DIR)/usr/bin/; \
fi
- if [ -f $(STAGING_DIR)/usr/bin-ccache/$(REAL_GNU_TARGET_NAME)-g++ ] ; then \
+ if [ -f $(STAGING_DIR)/usr/bin-ccache/$(REAL_GNU_TARGET_NAME)-g++ ]; then \
rm -f $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-g++; \
mv $(STAGING_DIR)/usr/bin-ccache/$(REAL_GNU_TARGET_NAME)-g++ $(STAGING_DIR)/usr/bin/; \
fi
cp $${LIB_DIR}/$${LIB} $(TARGET_DIR)$${DST}/$${LIB}; \
case "$${STRIP}" in \
(0 | n | no) \
- ;; \
+;; \
(*) \
$(TARGET_CROSS)strip "$(TARGET_DIR)$${DST}/$${LIB}"; \
- ;; \
+;; \
esac; \
else \
exit -1; \
mkdir -p $(TARGET_DIR)/lib
@$(call copy_toolchain_lib_root, $(strip $(subst ",, $(BR2_TOOLCHAIN_EXTERNAL_LIB_C))), /lib, $(BR2_TOOLCHAIN_EXTERNAL_STRIP))
#")))
- for libs in $(strip $(subst ",, $(BR2_TOOLCHAIN_EXTERNAL_LIBS))) ; do \
- $(call copy_toolchain_lib_root, $$libs, /lib, $(BR2_TOOLCHAIN_EXTERNAL_STRIP)) ; \
+ for libs in $(strip $(subst ",, $(BR2_TOOLCHAIN_EXTERNAL_LIBS))); do \
+ $(call copy_toolchain_lib_root, $$libs, /lib, $(BR2_TOOLCHAIN_EXTERNAL_STRIP)); \
done
ln -snf ../include $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/sys-include
#-rmdir $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib
#ln -snf ../lib/ $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib
- (cd $(GCC_BUILD_DIR2); rm -rf config.cache ; \
+ (cd $(GCC_BUILD_DIR2); rm -rf config.cache; \
$(HOST_CONFIGURE_OPTS) \
LDFLAGS_FOR_TARGET="$(patsubst %,LDFLAGS+=-Wl$(comma)%,$(TARGET_LDFLAGS)) -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib" \
$(GCC_DIR)/configure \
$(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
PATH=$(TARGET_PATH) $(MAKE) -C $(GCC_BUILD_DIR2) install
- if [ -d "$(STAGING_DIR)/usr/lib64" ] ; then \
- if [ ! -e "$(STAGING_DIR)/usr/lib" ] ; then \
- mkdir "$(STAGING_DIR)/usr/lib" ; \
- fi ; \
- mv "$(STAGING_DIR)/usr/lib64/"* "$(STAGING_DIR)/usr/lib/" ; \
- rmdir "$(STAGING_DIR)/usr/lib64" ; \
+ if [ -d "$(STAGING_DIR)/usr/lib64" ]; then \
+ if [ ! -e "$(STAGING_DIR)/usr/lib" ]; then \
+ mkdir "$(STAGING_DIR)/usr/lib"; \
+ fi; \
+ mv "$(STAGING_DIR)/usr/lib64/"* "$(STAGING_DIR)/usr/lib/"; \
+ rmdir "$(STAGING_DIR)/usr/lib64"; \
fi
# Strip the host binaries
ifeq ($(GCC_STRIP_HOST_BINARIES),true)
-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/*
endif
# Make sure we have 'cc'.
- if [ ! -e $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc ] ; then \
+ if [ ! -e $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc ]; then \
ln -snf $(REAL_GNU_TARGET_NAME)-gcc \
- $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc ; \
+ $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc; \
fi
- if [ ! -e $(STAGING_DIR)/usr/bin/gcc ] ; then \
- ln -snf gcc $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc ; \
+ if [ ! -e $(STAGING_DIR)/usr/bin/gcc ]; then \
+ ln -snf gcc $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc; \
fi
# Set up the symlinks to enable lying about target name.
set -e; \
(cd $(STAGING_DIR)/usr; \
ln -snf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \
cd bin; \
- for app in $(REAL_GNU_TARGET_NAME)-* ; do \
+ for app in $(REAL_GNU_TARGET_NAME)-*; do \
ln -snf $${app} \
$(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \
done; \
ifeq ($(BR2_SOFT_FLOAT),y)
ifeq ($(findstring 3.3.,$(GCC_VERSION)),3.3.)
# Make sure we have a soft float specs file for this arch
- if [ ! -f toolchain/gcc/$(GCC_VERSION)/specs-$(ARCH)-soft-float ] ; then \
- echo soft float configured but no specs file for this arch ; \
- /bin/false ; \
+ if [ ! -f toolchain/gcc/$(GCC_VERSION)/specs-$(ARCH)-soft-float ]; then \
+ echo soft float configured but no specs file for this arch; \
+ /bin/false; \
fi
# Replace specs file with one that defaults to soft float mode.
- if [ ! -f $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs ] ; then \
- echo staging dir specs file is missing ; \
- /bin/false ; \
+ if [ ! -f $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs ]; then \
+ echo staging dir specs file is missing; \
+ /bin/false; \
fi
cp toolchain/gcc/$(GCC_VERSION)/specs-$(ARCH)-soft-float $(STAGING_DIR)/usr/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
endif
touch $@
$(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.prepared
- (cd $(GCC_BUILD_DIR3); rm -rf config.cache ; \
+ (cd $(GCC_BUILD_DIR3); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS_FOR_BUILD="-g -O2 $(HOST_CFLAGS)" \
$(TARGET_GCC_FLAGS) \
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
# Work around problem of missing syslimits.h
- if [ ! -f $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/syslimits.h ] ; then \
- echo "warning: working around missing syslimits.h" ; \
+ if [ ! -f $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/syslimits.h ]; then \
+ echo "warning: working around missing syslimits.h"; \
cp -f $(STAGING_DIR)/usr/$(GCC_LIB_SUBDIR)/include/syslimits.h \
- $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/ ; \
+ $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/; \
fi
# Make sure we have 'cc'.
- if [ ! -e $(TARGET_DIR)/usr/bin/cc ] ; then \
- ln -snf gcc $(TARGET_DIR)/usr/bin/cc ; \
+ if [ ! -e $(TARGET_DIR)/usr/bin/cc ]; then \
+ ln -snf gcc $(TARGET_DIR)/usr/bin/cc; \
fi
# These are in /lib, so...
#rm -rf $(TARGET_DIR)/usr/lib/libgcc_s*.so*
$(GCC_BUILD_DIR1)/.configured: $(GCC_DIR)/.patched
mkdir -p $(GCC_BUILD_DIR1)
- (cd $(GCC_BUILD_DIR1); rm -rf config.cache ; \
+ (cd $(GCC_BUILD_DIR1); rm -rf config.cache; \
$(HOST_CONFIGURE_OPTS) \
$(GCC_DIR)/configure \
--prefix=$(STAGING_DIR)/usr \
ln -snf ../include/ $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/sys-include
#-rmdir $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib
#ln -snf ../lib $(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/lib
- (cd $(GCC_BUILD_DIR2); rm -rf config.cache ; \
+ (cd $(GCC_BUILD_DIR2); rm -rf config.cache; \
$(HOST_CONFIGURE_OPTS) \
$(GCC_DIR)/configure \
--prefix=$(BR2_SYSROOT_PREFIX)/usr \
$(GCC_BUILD_DIR2)/.installed: $(GCC_BUILD_DIR2)/.compiled
PATH=$(TARGET_PATH) $(MAKE) $(BR2_SYSROOT_STAGING_DESTDIR) \
-C $(GCC_BUILD_DIR2) install
- if [ -d "$(STAGING_DIR)/lib64" ] ; then \
- if [ ! -e "$(STAGING_DIR)/lib" ] ; then \
- mkdir "$(STAGING_DIR)/lib" ; \
- fi ; \
- mv "$(STAGING_DIR)/lib64/"* "$(STAGING_DIR)/lib/" ; \
- rmdir "$(STAGING_DIR)/lib64" ; \
+ if [ -d "$(STAGING_DIR)/lib64" ]; then \
+ if [ ! -e "$(STAGING_DIR)/lib" ]; then \
+ mkdir "$(STAGING_DIR)/lib"; \
+ fi; \
+ mv "$(STAGING_DIR)/lib64/"* "$(STAGING_DIR)/lib/"; \
+ rmdir "$(STAGING_DIR)/lib64"; \
fi
# Move gcc bug reporting script out of path of real executables
mv -f $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-gccbug \
-strip --strip-all -R .note -R .comment $(STAGING_DIR)/usr/bin/faked
endif
# Make sure we have 'cc'.
- if [ ! -e $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc ] ; then \
+ if [ ! -e $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc ]; then \
ln -snf $(REAL_GNU_TARGET_NAME)-gcc \
- $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc ; \
+ $(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-cc; \
fi
- if [ ! -e $(STAGING_DIR)/usr/bin/cc ] ; then \
- ln -snf gcc $(STAGING_DIR)/usr/bin/cc ; \
+ if [ ! -e $(STAGING_DIR)/usr/bin/cc ]; then \
+ ln -snf gcc $(STAGING_DIR)/usr/bin/cc; \
fi
# Set up the symlinks to enable lying about target name.
set -e; \
(cd $(STAGING_DIR); \
ln -snf $(REAL_GNU_TARGET_NAME) $(GNU_TARGET_NAME); \
cd usr/bin; \
- for app in $(REAL_GNU_TARGET_NAME)-* ; do \
+ for app in $(REAL_GNU_TARGET_NAME)-*; do \
ln -snf $${app} \
$(GNU_TARGET_NAME)$${app##$(REAL_GNU_TARGET_NAME)}; \
done; \
ifeq ($(BR2_SOFT_FLOAT),y)
ifeq ($(findstring 3.3.,$(GCC_VERSION)),3.3.)
# Make sure we have a soft float specs file for this arch
- if [ ! -f toolchain/gcc/$(GCC_VERSION)/specs-$(ARCH)-soft-float ] ; then \
- echo soft float configured but no specs file for this arch ; \
- /bin/false ; \
+ if [ ! -f toolchain/gcc/$(GCC_VERSION)/specs-$(ARCH)-soft-float ]; then \
+ echo soft float configured but no specs file for this arch; \
+ /bin/false; \
fi
# Replace specs file with one that defaults to soft float mode.
- if [ ! -f $(STAGING_DIR)/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs ] ; then \
- echo staging dir specs file is missing ; \
- /bin/false ; \
+ if [ ! -f $(STAGING_DIR)/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs ]; then \
+ echo staging dir specs file is missing; \
+ /bin/false; \
fi
cp toolchain/gcc/$(GCC_VERSION)/specs-$(ARCH)-soft-float $(STAGING_DIR)/lib/gcc-lib/$(REAL_GNU_TARGET_NAME)/$(GCC_VERSION)/specs
endif
touch $@
$(GCC_BUILD_DIR3)/.configured: $(GCC_BUILD_DIR3)/.prepared
- (cd $(GCC_BUILD_DIR3); rm -rf config.cache ; \
+ (cd $(GCC_BUILD_DIR3); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
$(TARGET_GCC_FLAGS) \
$(GCC_DIR)/configure \
#rm -rf $(TARGET_DIR)/share/locale $(TARGET_DIR)/usr/info \
# $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc
# Work around problem of missing syslimits.h
- if [ ! -f $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/syslimits.h ] ; then \
- echo "warning: working around missing syslimits.h" ; \
+ if [ ! -f $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/syslimits.h ]; then \
+ echo "warning: working around missing syslimits.h"; \
cp -f $(STAGING_DIR)/$(GCC_LIB_SUBDIR)/include/syslimits.h \
- $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/ ; \
+ $(TARGET_DIR)/usr/$(GCC_LIB_SUBDIR)/include/; \
fi
# Make sure we have 'cc'.
- if [ ! -e $(TARGET_DIR)/usr/bin/cc ] ; then \
- ln -snf gcc $(TARGET_DIR)/usr/bin/cc ; \
+ if [ ! -e $(TARGET_DIR)/usr/bin/cc ]; then \
+ ln -snf gcc $(TARGET_DIR)/usr/bin/cc; \
fi
# These are in /lib, so...
#rm -rf $(TARGET_DIR)/usr/lib/libgcc_s*.so*
$(GDB_TARGET_DIR)/.configured: $(GDB_DIR)/.unpacked
mkdir -p $(GDB_TARGET_DIR)
- (cd $(GDB_TARGET_DIR); rm -rf config.cache ; \
+ (cd $(GDB_TARGET_DIR); rm -rf config.cache; \
gdb_cv_func_sigsetjmp=yes \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_LDFLAGS) -Wno-error" \
$(GDB_SERVER_DIR)/.configured: $(GDB_DIR)/.unpacked
mkdir -p $(GDB_SERVER_DIR)
- (cd $(GDB_SERVER_DIR); rm -rf config.cache ; \
+ (cd $(GDB_SERVER_DIR); rm -rf config.cache; \
$(TARGET_CONFIGURE_OPTS) \
gdb_cv_func_sigsetjmp=yes \
bash_cv_have_mbstate_t=yes \
$(GDB_HOST_DIR)/.configured: $(GDB_DIR)/.unpacked
mkdir -p $(GDB_HOST_DIR)
- (cd $(GDB_HOST_DIR); rm -rf config.cache ; \
+ (cd $(GDB_HOST_DIR); rm -rf config.cache; \
gdb_cv_func_sigsetjmp=yes \
bash_cv_have_mbstate_t=yes \
$(GDB_DIR)/configure \
pregen install_dev
# Install the kernel headers to the first stage gcc include dir if necessary
ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
- if [ ! -f $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/linux/version.h ] ; \
+ if [ ! -f $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/linux/version.h ]; \
then \
- cp -pLR $(LINUX_HEADERS_DIR)/include/* $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/ ; \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/* $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/; \
fi
else
- if [ ! -f $(STAGING_DIR)/usr/include/linux/version.h ] ; then \
- cp -pLR $(LINUX_HEADERS_DIR)/include/asm $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/ ; \
- cp -pLR $(LINUX_HEADERS_DIR)/include/linux $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/ ; \
- if [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ] ; then \
+ if [ ! -f $(STAGING_DIR)/usr/include/linux/version.h ]; then \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/asm $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/; \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/linux $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/; \
+ if [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ]; then \
cp -pLR $(LINUX_HEADERS_DIR)/include/asm-generic \
- $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/ ; \
+ $(TOOL_BUILD_DIR)/uClibc_dev/usr/include/; \
fi; \
fi
endif
endif
# Install the kernel headers to the staging dir if necessary
ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
- if [ ! -f $(STAGING_DIR)/usr/include/linux/version.h ] ; then \
- cp -pLR $(LINUX_HEADERS_DIR)/include/* $(STAGING_DIR)/usr/include/ ; \
+ if [ ! -f $(STAGING_DIR)/usr/include/linux/version.h ]; then \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/* $(STAGING_DIR)/usr/include/; \
fi
else
- if [ ! -f $(STAGING_DIR)/usr/include/linux/version.h ] ; then \
- cp -pLR $(LINUX_HEADERS_DIR)/include/asm $(STAGING_DIR)/usr/include/ ; \
- cp -pLR $(LINUX_HEADERS_DIR)/include/linux $(STAGING_DIR)/usr/include/ ; \
- if [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ] ; then \
+ if [ ! -f $(STAGING_DIR)/usr/include/linux/version.h ]; then \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/asm $(STAGING_DIR)/usr/include/; \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/linux $(STAGING_DIR)/usr/include/; \
+ if [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ]; then \
cp -pLR $(LINUX_HEADERS_DIR)/include/asm-generic \
- $(STAGING_DIR)/usr/include/ ; \
+ $(STAGING_DIR)/usr/include/; \
fi; \
fi
endif
install_dev
# Install the kernel headers to the target dir if necessary
ifeq ($(LINUX_HEADERS_IS_KERNEL),y)
- if [ ! -f $(TARGET_DIR)/usr/include/linux/version.h ] ; \
+ if [ ! -f $(TARGET_DIR)/usr/include/linux/version.h ]; \
then \
- cp -pLR $(LINUX_HEADERS_DIR)/include/* $(TARGET_DIR)/usr/include/ ; \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/* $(TARGET_DIR)/usr/include/; \
fi
else
- if [ ! -f $(TARGET_DIR)/usr/include/linux/version.h ] ; then \
- cp -pLR $(LINUX_HEADERS_DIR)/include/asm $(TARGET_DIR)/usr/include/ ; \
- cp -pLR $(LINUX_HEADERS_DIR)/include/linux $(TARGET_DIR)/usr/include/ ; \
- if [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ] ; then \
+ if [ ! -f $(TARGET_DIR)/usr/include/linux/version.h ]; then \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/asm $(TARGET_DIR)/usr/include/; \
+ cp -pLR $(LINUX_HEADERS_DIR)/include/linux $(TARGET_DIR)/usr/include/; \
+ if [ -d $(LINUX_HEADERS_DIR)/include/asm-generic ]; then \
cp -pLR $(LINUX_HEADERS_DIR)/include/asm-generic \
- $(TARGET_DIR)/usr/include/ ; \
+ $(TARGET_DIR)/usr/include/; \
fi; \
fi
endif