Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] Add libraw1394 to buildroot
@ 2006-12-12 16:35 Lars Munch
  2006-12-12 16:59 ` Bernhard Fischer
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Munch @ 2006-12-12 16:35 UTC (permalink / raw)
  To: buildroot

Hi all

The attached patch adds libraw1394-1.2.1 to buildroot. libraw1394 is a
library for direct access to IEEE 1394 bus.

Please apply.

-- Lars Munch


-------------- next part --------------
Index: buildroot/package/libraw1394/libraw1394.mk
===================================================================
--- buildroot/package/libraw1394/libraw1394.mk	(revision 0)
+++ buildroot/package/libraw1394/libraw1394.mk	(revision 0)
@@ -0,0 +1,60 @@
+#############################################################
+#
+# libraw1394
+#
+#############################################################
+
+LIBRAW1394_VERSION:=1.2.1
+LIBRAW1394_SOURCE:=libraw1394-$(LIBRAW1394_VERSION).tar.gz
+LIBRAW1394_SITE:=http://www.linux1394.org/dl
+LIBRAW1394_DIR:=$(BUILD_DIR)/libraw1394-$(LIBRAW1394_VERSION)
+
+$(DL_DIR)/$(LIBRAW1394_SOURCE):
+	$(WGET) -P $(DL_DIR) $(LIBRAW1394_SITE)/$(LIBRAW1394_SOURCE)
+
+$(LIBRAW1394_DIR)/.source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
+	$(ZCAT) $(DL_DIR)/$(LIBRAW1394_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	touch $(LIBRAW1394_DIR)/.source
+
+$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
+	(cd $(LIBRAW1394_DIR); \
+		$(TARGET_CONFIGURE_OPTS) \
+		CFLAGS="$(TARGET_CFLAGS)" \
+		./configure \
+			--target=$(GNU_TARGET_NAME) \
+			--host=$(GNU_TARGET_NAME) \
+			--build=$(GNU_HOST_NAME) \
+			--prefix=$(STAGING_DIR) \
+	);
+	touch $(LIBRAW1394_DIR)/.configured;
+
+$(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
+	$(MAKE) -C $(LIBRAW1394_DIR)
+	touch $(LIBRAW1394_DIR)/.compiled
+
+$(STAGING_DIR)/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
+	make -C $(LIBRAW1394_DIR)/src install
+
+$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
+	cp -dpf $(STAGING_DIR)/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
+
+libraw1394: uclibc $(TARGET_DIR)/usr/lib/libraw1394.so
+
+libraw1394-source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
+
+libraw1394-clean:
+	rm $(TARGET_DIR)/usr/lib/libraw1394.so*
+	-$(MAKE) -C $(LIBRAW1394_DIR) clean
+
+libraw1394-dirclean:
+	rm -rf $(LIBRAW1394_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBRAW1394)),y)
+TARGETS+=libraw1394
+endif
+
Index: buildroot/package/libraw1394/Config.in
===================================================================
--- buildroot/package/libraw1394/Config.in	(revision 0)
+++ buildroot/package/libraw1394/Config.in	(revision 0)
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBRAW1394
+	bool "libraw1394"
+	default n
+	help
+		Library for direct access to IEEE 1394 bus.
+
+		Through libraw1394/raw1394, applications can directly
+		send to and receive from other nodes without requiring
+		a kernel driver for the protocol in question.
+
+		http://www.linux1394.org/
Index: buildroot/package/Config.in
===================================================================
--- buildroot/package/Config.in	(revision 16852)
+++ buildroot/package/Config.in	(working copy)
@@ -73,6 +73,7 @@
 source "package/libmad/Config.in"
 source "package/libpcap/Config.in"
 source "package/libpng/Config.in"
+source "package/libraw1394/Config.in"
 source "package/libsysfs/Config.in"
 source "package/libtool/Config.in"
 source "package/libusb/Config.in"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] Add libraw1394 to buildroot
  2006-12-12 16:35 [Buildroot] [PATCH] Add libraw1394 to buildroot Lars Munch
@ 2006-12-12 16:59 ` Bernhard Fischer
  2006-12-12 18:31   ` Lars Munch
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Fischer @ 2006-12-12 16:59 UTC (permalink / raw)
  To: buildroot

On Tue, Dec 12, 2006 at 05:35:14PM +0100, Lars Munch wrote:
>Hi all
>
>The attached patch adds libraw1394-1.2.1 to buildroot. libraw1394 is a
>library for direct access to IEEE 1394 bus.

A few comments below..
>
>Please apply.
>
>-- Lars Munch
>
>

>Index: buildroot/package/libraw1394/libraw1394.mk
>===================================================================
>--- buildroot/package/libraw1394/libraw1394.mk	(revision 0)
>+++ buildroot/package/libraw1394/libraw1394.mk	(revision 0)
>@@ -0,0 +1,60 @@
>+#############################################################
>+#
>+# libraw1394
>+#
>+#############################################################
>+
>+LIBRAW1394_VERSION:=1.2.1
>+LIBRAW1394_SOURCE:=libraw1394-$(LIBRAW1394_VERSION).tar.gz
>+LIBRAW1394_SITE:=http://www.linux1394.org/dl
>+LIBRAW1394_DIR:=$(BUILD_DIR)/libraw1394-$(LIBRAW1394_VERSION)
>+
>+$(DL_DIR)/$(LIBRAW1394_SOURCE):
>+	$(WGET) -P $(DL_DIR) $(LIBRAW1394_SITE)/$(LIBRAW1394_SOURCE)
>+
>+$(LIBRAW1394_DIR)/.source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
>+	$(ZCAT) $(DL_DIR)/$(LIBRAW1394_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
>+	touch $(LIBRAW1394_DIR)/.source
>+
>+$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
>+	(cd $(LIBRAW1394_DIR); \
>+		$(TARGET_CONFIGURE_OPTS) \
>+		CFLAGS="$(TARGET_CFLAGS)" \

Please make sure to use the HOSTCC and/or HOSTCXX the user gave us.
I don't have plain "gcc" nor "g++", but have to specify
make HOSTCC=... HOSTCXX=...
so packages that need the host-compiler pickup the right compiler.

I didn't look if libraw1394 is umong these packages, so this might not
apply for this particular package. Please double-check.

>+		./configure \
>+			--target=$(GNU_TARGET_NAME) \
>+			--host=$(GNU_TARGET_NAME) \
>+			--build=$(GNU_HOST_NAME) \
>+			--prefix=$(STAGING_DIR) \
>+	);
>+	touch $(LIBRAW1394_DIR)/.configured;
>+
>+$(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
>+	$(MAKE) -C $(LIBRAW1394_DIR)
>+	touch $(LIBRAW1394_DIR)/.compiled
>+
>+$(STAGING_DIR)/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
>+	make -C $(LIBRAW1394_DIR)/src install
>+
>+$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
>+	cp -dpf $(STAGING_DIR)/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
>+
>+libraw1394: uclibc $(TARGET_DIR)/usr/lib/libraw1394.so
>+
>+libraw1394-source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
>+
>+libraw1394-clean:
>+	rm $(TARGET_DIR)/usr/lib/libraw1394.so*
>+	-$(MAKE) -C $(LIBRAW1394_DIR) clean

Can we please settle on the convention that
foo-clean uninstalls itself from the target-dir?

TIA,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] Add libraw1394 to buildroot
  2006-12-12 16:59 ` Bernhard Fischer
@ 2006-12-12 18:31   ` Lars Munch
  2006-12-12 21:22     ` Bernhard Fischer
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Munch @ 2006-12-12 18:31 UTC (permalink / raw)
  To: buildroot

On Tue, Dec 12, 2006 at 05:59:32PM +0100, Bernhard Fischer wrote:
> On Tue, Dec 12, 2006 at 05:35:14PM +0100, Lars Munch wrote:
> >Hi all
> >
> >The attached patch adds libraw1394-1.2.1 to buildroot. libraw1394 is a
> >library for direct access to IEEE 1394 bus.
> 
> A few comments below..

Thanks for the comments.

> >Index: buildroot/package/libraw1394/libraw1394.mk
> >===================================================================
> >--- buildroot/package/libraw1394/libraw1394.mk	(revision 0)
> >+++ buildroot/package/libraw1394/libraw1394.mk	(revision 0)
> >@@ -0,0 +1,60 @@
> >+#############################################################
> >+#
> >+# libraw1394
> >+#
> >+#############################################################
> >+
> >+LIBRAW1394_VERSION:=1.2.1
> >+LIBRAW1394_SOURCE:=libraw1394-$(LIBRAW1394_VERSION).tar.gz
> >+LIBRAW1394_SITE:=http://www.linux1394.org/dl
> >+LIBRAW1394_DIR:=$(BUILD_DIR)/libraw1394-$(LIBRAW1394_VERSION)
> >+
> >+$(DL_DIR)/$(LIBRAW1394_SOURCE):
> >+	$(WGET) -P $(DL_DIR) $(LIBRAW1394_SITE)/$(LIBRAW1394_SOURCE)
> >+
> >+$(LIBRAW1394_DIR)/.source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
> >+	$(ZCAT) $(DL_DIR)/$(LIBRAW1394_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
> >+	touch $(LIBRAW1394_DIR)/.source
> >+
> >+$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
> >+	(cd $(LIBRAW1394_DIR); \
> >+		$(TARGET_CONFIGURE_OPTS) \
> >+		CFLAGS="$(TARGET_CFLAGS)" \
> 
> Please make sure to use the HOSTCC and/or HOSTCXX the user gave us.
> I don't have plain "gcc" nor "g++", but have to specify
> make HOSTCC=... HOSTCXX=...
> so packages that need the host-compiler pickup the right compiler.
> 
> I didn't look if libraw1394 is umong these packages, so this might not
> apply for this particular package. Please double-check.

You are right, libraw1394 seems to need a CC_FOR_BUILD="$(HOSTCC)". I will
add that.

> 
> >+		./configure \
> >+			--target=$(GNU_TARGET_NAME) \
> >+			--host=$(GNU_TARGET_NAME) \
> >+			--build=$(GNU_HOST_NAME) \
> >+			--prefix=$(STAGING_DIR) \
> >+	);
> >+	touch $(LIBRAW1394_DIR)/.configured;
> >+
> >+$(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
> >+	$(MAKE) -C $(LIBRAW1394_DIR)
> >+	touch $(LIBRAW1394_DIR)/.compiled
> >+
> >+$(STAGING_DIR)/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
> >+	make -C $(LIBRAW1394_DIR)/src install
> >+
> >+$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
> >+	cp -dpf $(STAGING_DIR)/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
> >+
> >+libraw1394: uclibc $(TARGET_DIR)/usr/lib/libraw1394.so
> >+
> >+libraw1394-source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
> >+
> >+libraw1394-clean:
> >+	rm $(TARGET_DIR)/usr/lib/libraw1394.so*
> >+	-$(MAKE) -C $(LIBRAW1394_DIR) clean
> 
> Can we please settle on the convention that
> foo-clean uninstalls itself from the target-dir?

I am not sure what you mean. It already removes itself from the target-dir?

Thanks for the help
Lars Munch

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] Add libraw1394 to buildroot
  2006-12-12 18:31   ` Lars Munch
@ 2006-12-12 21:22     ` Bernhard Fischer
  2006-12-13  8:55       ` Lars Munch
  0 siblings, 1 reply; 5+ messages in thread
From: Bernhard Fischer @ 2006-12-12 21:22 UTC (permalink / raw)
  To: buildroot

On Tue, Dec 12, 2006 at 07:31:09PM +0100, Lars Munch wrote:
>On Tue, Dec 12, 2006 at 05:59:32PM +0100, Bernhard Fischer wrote:
>> On Tue, Dec 12, 2006 at 05:35:14PM +0100, Lars Munch wrote:
>> >Hi all
>> >
>> >The attached patch adds libraw1394-1.2.1 to buildroot. libraw1394 is a
>> >library for direct access to IEEE 1394 bus.

>> >+$(STAGING_DIR)/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
>> >+	make -C $(LIBRAW1394_DIR)/src install
>> >+
>> >+$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
>> >+	cp -dpf $(STAGING_DIR)/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
>> >+
>> >+libraw1394: uclibc $(TARGET_DIR)/usr/lib/libraw1394.so
>> >+
>> >+libraw1394-source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
>> >+
>> >+libraw1394-clean:
>> >+	rm $(TARGET_DIR)/usr/lib/libraw1394.so*
>> >+	-$(MAKE) -C $(LIBRAW1394_DIR) clean
>> 
>> Can we please settle on the convention that
>> foo-clean uninstalls itself from the target-dir?
>
>I am not sure what you mean. It already removes itself from the target-dir?

You're right since you IIRC install into the staging dir and just cp the *.so
for the target. Sorry for my sloppy reading.

That may raise the question if and iff then how we want to allow for
installing .a into the target to ease e.g. debugging. Generally nothing i
want to worry for now, though. :)

Please refresh (the CC_FOR_BUILD) and resend.
TIA and cheers,
Bernhard

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] Add libraw1394 to buildroot
  2006-12-12 21:22     ` Bernhard Fischer
@ 2006-12-13  8:55       ` Lars Munch
  0 siblings, 0 replies; 5+ messages in thread
From: Lars Munch @ 2006-12-13  8:55 UTC (permalink / raw)
  To: buildroot

On Tue, Dec 12, 2006 at 10:22:27PM +0100, Bernhard Fischer wrote:
> On Tue, Dec 12, 2006 at 07:31:09PM +0100, Lars Munch wrote:
> >On Tue, Dec 12, 2006 at 05:59:32PM +0100, Bernhard Fischer wrote:
> >> On Tue, Dec 12, 2006 at 05:35:14PM +0100, Lars Munch wrote:
> >> >Hi all
> >> >
> >> >The attached patch adds libraw1394-1.2.1 to buildroot. libraw1394 is a
> >> >library for direct access to IEEE 1394 bus.
> 
> >> >+$(STAGING_DIR)/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
> >> >+	make -C $(LIBRAW1394_DIR)/src install
> >> >+
> >> >+$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
> >> >+	cp -dpf $(STAGING_DIR)/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
> >> >+
> >> >+libraw1394: uclibc $(TARGET_DIR)/usr/lib/libraw1394.so
> >> >+
> >> >+libraw1394-source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
> >> >+
> >> >+libraw1394-clean:
> >> >+	rm $(TARGET_DIR)/usr/lib/libraw1394.so*
> >> >+	-$(MAKE) -C $(LIBRAW1394_DIR) clean
> >> 
> >> Can we please settle on the convention that
> >> foo-clean uninstalls itself from the target-dir?
> >
> >I am not sure what you mean. It already removes itself from the target-dir?
> 
> You're right since you IIRC install into the staging dir and just cp the *.so
> for the target. Sorry for my sloppy reading.
> 
> That may raise the question if and iff then how we want to allow for
> installing .a into the target to ease e.g. debugging. Generally nothing i
> want to worry for now, though. :)
> 
> Please refresh (the CC_FOR_BUILD) and resend.
> TIA and cheers,
> Bernhard

Updated patch attached.

Please apply.

-- Lars Munch

-------------- next part --------------
Index: buildroot/package/libraw1394/libraw1394.mk
===================================================================
--- buildroot/package/libraw1394/libraw1394.mk	(revision 0)
+++ buildroot/package/libraw1394/libraw1394.mk	(revision 0)
@@ -0,0 +1,60 @@
+#############################################################
+#
+# libraw1394
+#
+#############################################################
+
+LIBRAW1394_VERSION:=1.2.1
+LIBRAW1394_SOURCE:=libraw1394-$(LIBRAW1394_VERSION).tar.gz
+LIBRAW1394_SITE:=http://www.linux1394.org/dl
+LIBRAW1394_DIR:=$(BUILD_DIR)/libraw1394-$(LIBRAW1394_VERSION)
+
+$(DL_DIR)/$(LIBRAW1394_SOURCE):
+	$(WGET) -P $(DL_DIR) $(LIBRAW1394_SITE)/$(LIBRAW1394_SOURCE)
+
+$(LIBRAW1394_DIR)/.source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
+	$(ZCAT) $(DL_DIR)/$(LIBRAW1394_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	touch $(LIBRAW1394_DIR)/.source
+
+$(LIBRAW1394_DIR)/.configured: $(LIBRAW1394_DIR)/.source
+	(cd $(LIBRAW1394_DIR); \
+		$(TARGET_CONFIGURE_OPTS) CC_FOR_BUILD="$(HOSTCC)" \
+		CFLAGS="$(TARGET_CFLAGS)" \
+		./configure \
+			--target=$(GNU_TARGET_NAME) \
+			--host=$(GNU_TARGET_NAME) \
+			--build=$(GNU_HOST_NAME) \
+			--prefix=$(STAGING_DIR) \
+	);
+	touch $(LIBRAW1394_DIR)/.configured;
+
+$(LIBRAW1394_DIR)/.compiled: $(LIBRAW1394_DIR)/.configured
+	$(MAKE) -C $(LIBRAW1394_DIR)
+	touch $(LIBRAW1394_DIR)/.compiled
+
+$(STAGING_DIR)/lib/libraw1394.so: $(LIBRAW1394_DIR)/.compiled
+	make -C $(LIBRAW1394_DIR)/src install
+
+$(TARGET_DIR)/usr/lib/libraw1394.so: $(STAGING_DIR)/lib/libraw1394.so
+	cp -dpf $(STAGING_DIR)/lib/libraw1394.so* $(TARGET_DIR)/usr/lib/
+
+libraw1394: uclibc $(TARGET_DIR)/usr/lib/libraw1394.so
+
+libraw1394-source: $(DL_DIR)/$(LIBRAW1394_SOURCE)
+
+libraw1394-clean:
+	rm $(TARGET_DIR)/usr/lib/libraw1394.so*
+	-$(MAKE) -C $(LIBRAW1394_DIR) clean
+
+libraw1394-dirclean:
+	rm -rf $(LIBRAW1394_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LIBRAW1394)),y)
+TARGETS+=libraw1394
+endif
+
Index: buildroot/package/libraw1394/Config.in
===================================================================
--- buildroot/package/libraw1394/Config.in	(revision 0)
+++ buildroot/package/libraw1394/Config.in	(revision 0)
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBRAW1394
+	bool "libraw1394"
+	default n
+	help
+		Library for direct access to IEEE 1394 bus.
+
+		Through libraw1394/raw1394, applications can directly
+		send to and receive from other nodes without requiring
+		a kernel driver for the protocol in question.
+
+		http://www.linux1394.org/
Index: buildroot/package/Config.in
===================================================================
--- buildroot/package/Config.in	(revision 16876)
+++ buildroot/package/Config.in	(working copy)
@@ -75,6 +75,7 @@
 source "package/libmad/Config.in"
 source "package/libpcap/Config.in"
 source "package/libpng/Config.in"
+source "package/libraw1394/Config.in"
 source "package/libsysfs/Config.in"
 source "package/libtool/Config.in"
 source "package/libusb/Config.in"

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-12-13  8:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12 16:35 [Buildroot] [PATCH] Add libraw1394 to buildroot Lars Munch
2006-12-12 16:59 ` Bernhard Fischer
2006-12-12 18:31   ` Lars Munch
2006-12-12 21:22     ` Bernhard Fischer
2006-12-13  8:55       ` Lars Munch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox