Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
From a9f6a55bdb29a2bebc96a68ab53077906c25a9df Mon Sep 17 00:00:00 2001
|
||||
From: Yegor Yefremov <yegorslists@googlemail.com>
|
||||
Date: Wed, 22 Jan 2014 15:04:42 +0100
|
||||
Subject: [PATCH] Fix compiling on Buildroot
|
||||
|
||||
Buildroot always specifies -D_LARGEFILE_SOURCE, -D_LARGEFILE64_SOURCE,
|
||||
-D_FILE_OFFSET_BITS=64, so define them only if they are not already
|
||||
defined.
|
||||
|
||||
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
|
||||
---
|
||||
src/fmacros.h | 4 ++++
|
||||
1 files changed, 4 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/src/fmacros.h b/src/fmacros.h
|
||||
index fa37948..059dfeb 100644
|
||||
--- a/src/fmacros.h
|
||||
+++ b/src/fmacros.h
|
||||
@@ -14,7 +14,11 @@
|
||||
#define _XOPEN_SOURCE
|
||||
#endif
|
||||
|
||||
+#ifndef _LARGEFILE_SOURCE
|
||||
#define _LARGEFILE_SOURCE
|
||||
+#endif
|
||||
+#ifndef _FILE_OFFSET_BITS
|
||||
#define _FILE_OFFSET_BITS 64
|
||||
+#endif
|
||||
|
||||
#endif
|
||||
--
|
||||
1.7.7
|
||||
@@ -0,0 +1,38 @@
|
||||
From 4a08c9e07fa8b7a1d6a76b927ea97e3eaa784845 Mon Sep 17 00:00:00 2001
|
||||
From: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
|
||||
Date: Sun, 26 Oct 2014 16:16:25 -0300
|
||||
Subject: [PATCH] compile: Remove -Werror and avoid build failures because of
|
||||
warnings
|
||||
|
||||
Using -Werror on production is a bad idea, as otherwise harmless warnings
|
||||
get treated as errors breaking builds. This is currently the case with
|
||||
Nios-II architecture toolchain, warning about a deprecated macro:
|
||||
|
||||
../usr/nios2-buildroot-linux-gnu/sysroot/usr/include/features.h:148:3:
|
||||
error: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Werror=cpp]
|
||||
# warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
|
||||
|
||||
Instead of trying to fix the macro, let's fix the real issue here,
|
||||
and remove -Werror.
|
||||
|
||||
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
|
||||
---
|
||||
src/makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/makefile b/src/makefile
|
||||
index 294dc08..4ac4c43 100644
|
||||
--- a/src/makefile
|
||||
+++ b/src/makefile
|
||||
@@ -32,7 +32,7 @@ ZLOG_MINOR=2
|
||||
# Fallback to gcc when $CC is not in $PATH.
|
||||
CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
|
||||
OPTIMIZATION?=-O2
|
||||
-WARNINGS=-Wall -Werror -Wstrict-prototypes -fwrapv
|
||||
+WARNINGS=-Wall -Wstrict-prototypes -fwrapv
|
||||
DEBUG?= -g -ggdb
|
||||
REAL_CFLAGS=$(OPTIMIZATION) -fPIC -pthread $(CFLAGS) $(WARNINGS) $(DEBUG)
|
||||
REAL_LDFLAGS=$(LDFLAGS) -pthread
|
||||
--
|
||||
2.1.0
|
||||
|
||||
12
deprecated/firmware/buildroot/package/zlog/Config.in
Normal file
12
deprecated/firmware/buildroot/package/zlog/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_ZLOG
|
||||
bool "zlog"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
zlog is a reliable, high-performance, thread safe, flexible,
|
||||
clear-model, pure C logging library.
|
||||
|
||||
https://github.com/HardySimpson/zlog
|
||||
|
||||
comment "zlog needs a toolchain w/ threads, dynamic library"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
26
deprecated/firmware/buildroot/package/zlog/zlog.mk
Normal file
26
deprecated/firmware/buildroot/package/zlog/zlog.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# zlog
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ZLOG_VERSION = ca6162be1608839e99c6388c28488c51ccf98e4a
|
||||
ZLOG_SITE = $(call github,HardySimpson,zlog,$(ZLOG_VERSION))
|
||||
ZLOG_LICENSE = LGPLv2.1
|
||||
ZLOG_LICENSE_FILES = COPYING
|
||||
ZLOG_INSTALL_STAGING = YES
|
||||
|
||||
define ZLOG_BUILD_CMDS
|
||||
$(MAKE1) CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS)" \
|
||||
-C $(@D) all
|
||||
endef
|
||||
|
||||
define ZLOG_INSTALL_STAGING_CMDS
|
||||
$(MAKE) PREFIX=$(STAGING_DIR)/usr -C $(@D) install
|
||||
endef
|
||||
|
||||
define ZLOG_INSTALL_TARGET_CMDS
|
||||
$(MAKE) PREFIX=$(TARGET_DIR)/usr -C $(@D) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user