From: nkukard at uclibc.org <nkukard@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/bootutils
Date: Thu, 17 Apr 2008 06:28:47 -0700 (PDT) [thread overview]
Message-ID: <20080417132847.211253C579@busybox.net> (raw)
Author: nkukard
Date: 2008-04-17 06:28:46 -0700 (Thu, 17 Apr 2008)
New Revision: 21756
Log:
* Convert bootutils to autotools
Modified:
trunk/buildroot/package/bootutils/bootutils.mk
Changeset:
Modified: trunk/buildroot/package/bootutils/bootutils.mk
===================================================================
--- trunk/buildroot/package/bootutils/bootutils.mk 2008-04-17 13:25:47 UTC (rev 21755)
+++ trunk/buildroot/package/bootutils/bootutils.mk 2008-04-17 13:28:46 UTC (rev 21756)
@@ -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_INSTALL_TARGET_OPT=DESTDIR=$(TARGET_DIR) install
-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
-
+$(eval $(call AUTOTARGETS,package,bootutils))
next reply other threads:[~2008-04-17 13:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-17 13:28 nkukard at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-01-01 19:41 [Buildroot] svn commit: trunk/buildroot/package/bootutils nkukard at uclibc.org
2008-04-19 5:59 nkukard at uclibc.org
2008-04-17 18:00 nkukard at uclibc.org
2008-04-08 14:45 nkukard at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080417132847.211253C579@busybox.net \
--to=nkukard@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox