Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From 03bab84ca3f102274837e83ee6da4c997a9da018 Mon Sep 17 00:00:00 2001
|
||||
From: Tzu-Jung Lee <tjlee@ambarella.com>
|
||||
Date: Fri, 12 Jul 2013 20:00:57 +0800
|
||||
Subject: [PATCH] build: modify hardcoded gcc to support buildroot
|
||||
|
||||
Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com>
|
||||
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
index 026b6ba..b87ae9f 100644
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
@@ -5,10 +5,10 @@ OBJFILES := main.o lookup.o\
|
||||
lookup_bfd.o lookup_kas.o
|
||||
|
||||
dropwatch: $(OBJFILES)
|
||||
- gcc -g -o dropwatch $(OBJFILES) $(LDFLAGS)
|
||||
+ $(CC) -g -o dropwatch $(OBJFILES) $(LDFLAGS)
|
||||
|
||||
%.o: %.c
|
||||
- gcc $(CFLAGS) $<
|
||||
+ $(CC) $(CFLAGS) $<
|
||||
clean:
|
||||
rm -f dropwatch *.o
|
||||
|
||||
--
|
||||
1.8.3.2
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
libbfd from binutils 2.23.1+ requires PACKAGE* definitions from autoconf.
|
||||
Patch from https://fedorahosted.org/dropwatch/ticket/5
|
||||
Upstream status: new.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
|
||||
diff -aurd src.orig/lookup.c src/lookup.c
|
||||
--- a/src/lookup.c 2011-10-03 22:51:38.000000000 +0400
|
||||
+++ b/src/lookup.c 2013-02-18 09:13:56.683214438 +0400
|
||||
@@ -27,13 +27,13 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/utsname.h>
|
||||
-#include <bfd.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "lookup.h"
|
||||
+#include <bfd.h>
|
||||
|
||||
extern struct lookup_methods bfd_methods;
|
||||
extern struct lookup_methods kallsym_methods;
|
||||
diff -aurd src.orig/lookup.h src/lookup.h
|
||||
--- a/src/lookup.h 2011-10-03 22:51:38.000000000 +0400
|
||||
+++ b/src/lookup.h 2013-02-18 09:11:00.506895026 +0400
|
||||
@@ -28,6 +28,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <asm/types.h>
|
||||
|
||||
+// satisfy PR 14072 in bfd.h
|
||||
+#define PACKAGE 1
|
||||
+#define PACKAGE_VERSION 1
|
||||
|
||||
/*
|
||||
* Initalization routine
|
||||
diff -aurd src.orig/lookup_bfd.c src/lookup_bfd.c
|
||||
--- a/src/lookup_bfd.c 2012-01-16 22:34:11.000000000 +0400
|
||||
+++ b/src/lookup_bfd.c 2013-02-18 09:14:02.472984310 +0400
|
||||
@@ -25,13 +25,13 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/utsname.h>
|
||||
-#include <bfd.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "lookup.h"
|
||||
+#include <bfd.h>
|
||||
|
||||
|
||||
static int lookup_bfd_init(void)
|
||||
diff -aurd src.orig/lookup_kas.c src/lookup_kas.c
|
||||
--- a/src/lookup_kas.c 2012-05-31 02:43:23.000000000 +0400
|
||||
+++ b/src/lookup_kas.c 2013-02-18 09:14:07.906101713 +0400
|
||||
@@ -25,7 +25,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/utsname.h>
|
||||
-#include <bfd.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -33,6 +32,7 @@
|
||||
#include <sys/queue.h>
|
||||
|
||||
#include "lookup.h"
|
||||
+#include <bfd.h>
|
||||
|
||||
struct symbol_entry {
|
||||
char *sym_name;
|
||||
@@ -0,0 +1,18 @@
|
||||
-Werror shouldn't be used in released code since it can
|
||||
cause random build failures on moderate warnings. It also
|
||||
depends on the used toolchain since different toolchains may
|
||||
or may not print the same warnings.
|
||||
|
||||
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
|
||||
|
||||
Index: dropwatch-1.4/src/Makefile
|
||||
===================================================================
|
||||
--- dropwatch-1.4.orig/src/Makefile
|
||||
+++ dropwatch-1.4/src/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
all: dropwatch
|
||||
-CFLAGS+=-c -g -D_GNU_SOURCE -Wall -Werror `pkg-config --cflags libnl-3.0`
|
||||
+CFLAGS+=-c -g -D_GNU_SOURCE -Wall `pkg-config --cflags libnl-3.0`
|
||||
LDFLAGS=-lbfd -lreadline -lnl-3 -lnl-genl-3
|
||||
OBJFILES := main.o lookup.o\
|
||||
lookup_bfd.o lookup_kas.o
|
||||
17
deprecated/firmware/buildroot/package/dropwatch/Config.in
Normal file
17
deprecated/firmware/buildroot/package/dropwatch/Config.in
Normal file
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_DROPWATCH
|
||||
bool "dropwatch"
|
||||
select BR2_PACKAGE_BINUTILS
|
||||
depends on !BR2_aarch64 && !BR2_nios2 # binutils
|
||||
depends on BR2_USE_WCHAR # binutils
|
||||
select BR2_PACKAGE_READLINE
|
||||
select BR2_PACKAGE_LIBNL
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
|
||||
help
|
||||
Dropwatch is an interactive utility for monitoring and
|
||||
recording packets that are dropped by the kernel
|
||||
|
||||
https://fedorahosted.org/dropwatch/
|
||||
|
||||
comment "dropwatch needs a toolchain w/ threads, wchar"
|
||||
depends on !BR2_aarch64 && !BR2_nios2
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 c2348b8d72781ab0f3ca52b8415d78ea98808280e14e7d68e76605f196bb5c4a dropwatch-1.4.tar.xz
|
||||
34
deprecated/firmware/buildroot/package/dropwatch/dropwatch.mk
Normal file
34
deprecated/firmware/buildroot/package/dropwatch/dropwatch.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
################################################################################
|
||||
#
|
||||
# dropwatch
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DROPWATCH_VERSION = 1.4
|
||||
DROPWATCH_SOURCE = dropwatch-$(DROPWATCH_VERSION).tar.xz
|
||||
DROPWATCH_SITE = https://git.fedorahosted.org/cgit/dropwatch.git/snapshot
|
||||
DROPWATCH_DEPENDENCIES = binutils libnl readline host-pkgconf
|
||||
DROPWATCH_LICENSE = GPLv2
|
||||
DROPWATCH_LICENSE_FILES = COPYING
|
||||
|
||||
# libbfd may be linked to libintl
|
||||
# Ugly... but LDFLAGS are hardcoded anyway
|
||||
DROPWATCH_LDFLAGS = \
|
||||
$(TARGET_LDFLAGS) -lbfd -lreadline -lnl-3 -lnl-genl-3 \
|
||||
-lpthread -lncurses -lm
|
||||
|
||||
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
||||
DROPWATCH_LDFLAGS += -lintl
|
||||
endif
|
||||
|
||||
define DROPWATCH_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
LDFLAGS="$(DROPWATCH_LDFLAGS)" build
|
||||
endef
|
||||
|
||||
define DROPWATCH_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/src/dropwatch \
|
||||
$(TARGET_DIR)/usr/bin/dropwatch
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user