From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Create zlib installation directory in the staging dir
Date: Fri, 31 Oct 2008 09:37:36 +0100 [thread overview]
Message-ID: <20081031083736.GB26468@mx.loc> (raw)
In-Reply-To: <20081030170039.6fe37578@surf>
On Thu, Oct 30, 2008 at 05:00:39PM +0100, Thomas Petazzoni wrote:
>Create zlib installation directory in the staging dir
>
>A simple .config with just Busybox and zlib, using an external binary
>toolchain, leads to the following build failure:
>
>touch -c /home/thomas/local/buildroot2/build_arm/zlib-1.2.3/libz.so
>cp -dpf /home/thomas/local/buildroot2/build_arm/zlib-1.2.3/libz.a /home/thomas/local/buildroot2/build_arm/staging_dir/usr/lib/
>cp: cannot create regular file `/home/thomas/local/buildroot2/build_arm/staging_dir/usr/lib/': Is a directory
>make: *** [/home/thomas/local/buildroot2/build_arm/staging_dir/usr/lib/libz.so] Error 1
>
>This is because no one creates $(STAGING_DIR)/usr/lib, and the
>installation of zlib is done manually. Fix that by creating
>$(STAGING_DIR)/usr/lib and $(STAGING_DIR)/usr/include in zlib
>installation target.
>
>Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
>---
> package/zlib/zlib.mk | 2 ++
> 1 file changed, 2 insertions(+)
>
>Index: buildroot2/package/zlib/zlib.mk
>===================================================================
>--- buildroot2.orig/package/zlib/zlib.mk
>+++ buildroot2/package/zlib/zlib.mk
>@@ -37,6 +37,8 @@
> touch -c $@
>
> $(STAGING_DIR)/usr/lib/libz.so: $(ZLIB_DIR)/libz.so
>+ mkdir -p $(STAGING_DIR)/usr/lib/
>+ mkdir -p $(STAGING_DIR)/usr/include/
> cp -dpf $(ZLIB_DIR)/libz.a $(STAGING_DIR)/usr/lib/
> cp -dpf $(ZLIB_DIR)/zlib.h $(STAGING_DIR)/usr/include/
> cp -dpf $(ZLIB_DIR)/zconf.h $(STAGING_DIR)/usr/include/
$(INSTALL) -D $(ZLIB_DIR)/libz.a $(STAGING_DIR)/usr/lib/libz.a
$(INSTALL) -D $(ZLIB_DIR)/zlib.h $(STAGING_DIR)/usr/include/zlib.h
$(INSTALL) $(ZLIB_DIR)/zconf.h $(STAGING_DIR)/usr/include/zconf.h
fixed.
next prev parent reply other threads:[~2008-10-31 8:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-30 16:00 [Buildroot] [PATCH] Create zlib installation directory in the staging dir Thomas Petazzoni
2008-10-31 8:37 ` Bernhard Reutner-Fischer [this message]
2008-10-31 12:11 ` Thiago A. Corrêa
2008-10-31 12:15 ` Bernhard Reutner-Fischer
2008-10-31 12:44 ` Thiago A. Corrêa
2008-10-31 13:26 ` Bernhard Reutner-Fischer
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=20081031083736.GB26468@mx.loc \
--to=rep.dot.nop@gmail.com \
--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