Import buildroot 2016.02.01
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From 384917321c45e492b0ca7aaa94d4b15324aef95d Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Fri, 28 Aug 2015 19:02:11 +0200
|
||||
Subject: [PATCH] Use -f option when calling ln at install time
|
||||
|
||||
This allows "make install; make install" to work properly.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Signed-off-by: Renaud AUBIN <root@renaud.io>
|
||||
---
|
||||
Makefile | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 33c8ba0..b36d95a 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -125,12 +125,12 @@ tags: http_parser.c http_parser.h test.c
|
||||
install: library
|
||||
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
||||
$(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
|
||||
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
||||
+ ln -sf $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
||||
|
||||
install-strip: library
|
||||
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
|
||||
$(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
|
||||
- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
||||
+ ln -sf $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT)
|
||||
|
||||
uninstall:
|
||||
rm $(INCLUDEDIR)/http_parser.h
|
||||
--
|
||||
2.6.2
|
||||
|
||||
17
firmware/buildroot/package/libhttpparser/Config.in
Normal file
17
firmware/buildroot/package/libhttpparser/Config.in
Normal file
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_LIBHTTPPARSER
|
||||
bool "libhttpparser"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
This is a parser for HTTP messages written in C. It
|
||||
parses both requests and responses. The parser is
|
||||
designed to be used in performance HTTP applications.
|
||||
It does not make any syscalls nor allocations, it does
|
||||
not buffer data, it can be interrupted at anytime.
|
||||
Depending on your architecture, it only requires about
|
||||
40 bytes of data per message stream (in a web server
|
||||
that is per connection).
|
||||
|
||||
https://github.com/nodejs/http-parser
|
||||
|
||||
comment "libhttpparser needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally computed:
|
||||
sha256 a11c5ccb9808496f3de66d54ea1f89271919923307e31c75de2a3a77a6754c97 libhttpparser-v2.6.0.tar.gz
|
||||
26
firmware/buildroot/package/libhttpparser/libhttpparser.mk
Normal file
26
firmware/buildroot/package/libhttpparser/libhttpparser.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# libhttpparser
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBHTTPPARSER_VERSION = v2.6.0
|
||||
LIBHTTPPARSER_SITE = $(call github,nodejs,http-parser,$(LIBHTTPPARSER_VERSION))
|
||||
LIBHTTPPARSER_INSTALL_STAGING = YES
|
||||
LIBHTTPPARSER_LICENSE = MIT
|
||||
LIBHTTPPARSER_LICENSE_FILES = LICENSE-MIT
|
||||
|
||||
define LIBHTTPPARSER_BUILD_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) library package
|
||||
endef
|
||||
|
||||
define LIBHTTPPARSER_INSTALL_STAGING_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) PREFIX=$(STAGING_DIR)/usr install
|
||||
$(INSTALL) -D -m 0644 $(@D)/libhttp_parser.a $(STAGING_DIR)/usr/lib/libhttp_parser.a
|
||||
endef
|
||||
|
||||
define LIBHTTPPARSER_INSTALL_TARGET_CMDS
|
||||
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) PREFIX=$(TARGET_DIR)/usr install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user