summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNigel Kukard <nkukard@lbsd.net>2008-04-17 13:28:46 +0000
committerNigel Kukard <nkukard@lbsd.net>2008-04-17 13:28:46 +0000
commitaf8401ed3cdef1ffe46279c50382fbac10803265 (patch)
tree63abc9e6f51594623b3a694ca9301f87cdece263
parent85900b09576a36b3bf87944e11e2c8ff9e0bb4d1 (diff)
downloadbuildroot-novena-af8401ed3cdef1ffe46279c50382fbac10803265.tar.gz
buildroot-novena-af8401ed3cdef1ffe46279c50382fbac10803265.zip
* Convert bootutils to autotools
-rw-r--r--package/bootutils/bootutils.mk61
1 files changed, 5 insertions, 56 deletions
diff --git a/package/bootutils/bootutils.mk b/package/bootutils/bootutils.mk
index 0eeecec90..deedc2d29 100644
--- a/package/bootutils/bootutils.mk
+++ b/package/bootutils/bootutils.mk
@@ -3,64 +3,13 @@
# bootutils
#
#############################################################
-BOOTUTILS_VERSION:=0.0.7
-BOOTUTILS_SOURCE:=bootutils-$(BOOTUTILS_VERSION).tar.gz
+BOOTUTILS_VERSION = 0.0.7
BOOTUTILS_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/bootutils
-BOOTUTILS_CAT:=$(ZCAT)
-BOOTUTILS_DIR:=$(BUILD_DIR)/bootutils-$(BOOTUTILS_VERSION)
-BOOTUTILS_BINARIES:=switchroot raidscan
-$(DL_DIR)/$(BOOTUTILS_SOURCE):
- $(WGET) -P $(DL_DIR) $(BOOTUTILS_SITE)/$(BOOTUTILS_SOURCE)
+BOOTUTILS_CONF_ENV = ac_cv_func_malloc_0_nonnull=yes
-$(BOOTUTILS_DIR)/.unpacked: $(DL_DIR)/$(BOOTUTILS_SOURCE)
- $(BOOTUTILS_CAT) $(DL_DIR)/$(BOOTUTILS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(BOOTUTILS_DIR) package/bootutils \*.patch
- touch $@
+BOOTUTILS_CONF_OPT = --prefix=/ --exec-prefix=/
-$(BOOTUTILS_DIR)/.configured: $(BOOTUTILS_DIR)/.unpacked
- (cd $(BOOTUTILS_DIR); rm -rf config.cache ; \
- $(TARGET_CONFIGURE_OPTS) \
- CFLAGS="$(TARGET_CFLAGS)" \
- ac_cv_func_malloc_0_nonnull=yes \
- ./configure \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/ \
- );
- touch $@
-
-BOOTUTILS_BUILD_TARGETS:=$(addprefix $(BOOTUTILS_DIR)/,$(BOOTUTILS_BINARIES))
-BOOTUTILS_PROGS:=$(addprefix $(TARGET_DIR)/sbin/,$(BOOTUTILS_BINARIES))
-
-$(BOOTUTILS_BUILD_TARGETS): $(BOOTUTILS_DIR)/.configured
- $(MAKE) -C $(BOOTUTILS_DIR)
-
-$(BOOTUTILS_PROGS): $(BOOTUTILS_BUILD_TARGETS)
- $(MAKE) -C $(BOOTUTILS_DIR) DESTDIR=$(TARGET_DIR) install
-
-#####################################################################
-.PHONY: bootutils-source bootutils bootutils-clean bootutils-dirclean
-
-bootutils: uclibc $(BOOTUTILS_PROGS)
-
-bootutils-source: $(DL_DIR)/$(BOOTUTILS_SOURCE)
-
-bootutils-clean: $(BOOTUTILS_CLEAN_DEPS)
- -$(MAKE) -C $(BOOTUTILS_DIR) DESTDIR=$(TARGET_DIR) uninstall clean
-
-
-bootutils-dirclean: $(BOOTUTILS_DIRCLEAN_DEPS)
- rm -rf $(BOOTUTILS_DIR)
-
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(strip $(BR2_PACKAGE_BOOTUTILS)),y)
-TARGETS+=bootutils
-endif
+BOOTUTILS_INSTALL_TARGET_OPT=DESTDIR=$(TARGET_DIR) install
+$(eval $(call AUTOTARGETS,package,bootutils))