From patchwork Mon Oct 21 09:36:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1180434 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GVEmQoMj"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46xWlG716fz9sCJ for ; Mon, 21 Oct 2019 20:37:46 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-Id:Date:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=+D1lV98slLCxnsi01iPXFalTRTgX4QTtQlzHLVwpeGc=; b=GVEmQoMjKxKuH3 USgbvOzd7BmrmrNh2pmJiO98KcALPoRuD2TEaZ5s/cRJOY3KzSCZJ/Yu279dQrCQaXLAed2GJuDG5 H3PJpT+0+HA40R4t+gCSYqXuwajX9Rz9D7TPSvQg7H/mavxBhT7IoCt0FvseHaVE0+e30mrzuBNTk vjCSD3q4WpmAJq4xwpKsU3KG97e5zOTH3POSFR1u2FxZWxrLPeEmx47eSAUODNMA6MQkFOVXCtsex 5T5DXv6DY7S1vNsEc9XL0H/8Jz7q7AFZKuE5IOLuozZsGFe6+rtBlBuNptvogxLlgBw3XrVHtQBrX 5CDl3aDmxGV8QV/N9xiw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU8C-0006xX-Uu; Mon, 21 Oct 2019 09:37:40 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU7O-0005tM-Qj for openwrt-devel@lists.openwrt.org; Mon, 21 Oct 2019 09:36:54 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 7544E35DA; Mon, 21 Oct 2019 11:36:45 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 7d5d4029; Mon, 21 Oct 2019 11:36:34 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Mon, 21 Oct 2019 11:36:38 +0200 Message-Id: <20191021093642.3118-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191021_023651_020357_F10FD7BA X-CRM114-Status: UNSURE ( 5.29 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH libnl-tiny 1/5] refactor into separate Git project X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org For improved reusability, testing etc. Signed-off-by: Petr Štetiar --- Makefile | 57 ++++--------------- src/attr.c => attr.c | 0 src/cache.c => cache.c | 0 src/cache_mngt.c => cache_mngt.c | 0 src/error.c => error.c | 0 src/genl.c => genl.c | 0 src/genl_ctrl.c => genl_ctrl.c | 0 src/genl_family.c => genl_family.c | 0 src/genl_mngt.c => genl_mngt.c | 0 src/handlers.c => handlers.c | 0 {src/include => include}/netlink-generic.h | 0 {src/include => include}/netlink-local.h | 0 {src/include => include}/netlink-types.h | 0 {src/include => include}/netlink/addr.h | 0 {src/include => include}/netlink/attr.h | 0 {src/include => include}/netlink/cache-api.h | 0 {src/include => include}/netlink/cache.h | 0 {src/include => include}/netlink/data.h | 0 {src/include => include}/netlink/errno.h | 0 {src/include => include}/netlink/genl/ctrl.h | 0 .../include => include}/netlink/genl/family.h | 0 {src/include => include}/netlink/genl/genl.h | 0 {src/include => include}/netlink/genl/mngt.h | 0 {src/include => include}/netlink/handlers.h | 0 {src/include => include}/netlink/list.h | 0 {src/include => include}/netlink/msg.h | 0 .../netlink/netlink-compat.h | 0 .../netlink/netlink-kernel.h | 0 {src/include => include}/netlink/netlink.h | 0 {src/include => include}/netlink/object-api.h | 0 {src/include => include}/netlink/object.h | 0 {src/include => include}/netlink/socket.h | 0 {src/include => include}/netlink/types.h | 0 {src/include => include}/netlink/utils.h | 0 {src/include => include}/netlink/version.h | 0 {src/include => include}/unl.h | 0 files/libnl-tiny.pc => libnl-tiny.pc | 0 src/msg.c => msg.c | 0 src/nl.c => nl.c | 0 src/object.c => object.c | 0 src/socket.c => socket.c | 0 src/Makefile | 17 ------ src/unl.c => unl.c | 0 43 files changed, 12 insertions(+), 62 deletions(-) rename src/attr.c => attr.c (100%) rename src/cache.c => cache.c (100%) rename src/cache_mngt.c => cache_mngt.c (100%) rename src/error.c => error.c (100%) rename src/genl.c => genl.c (100%) rename src/genl_ctrl.c => genl_ctrl.c (100%) rename src/genl_family.c => genl_family.c (100%) rename src/genl_mngt.c => genl_mngt.c (100%) rename src/handlers.c => handlers.c (100%) rename {src/include => include}/netlink-generic.h (100%) rename {src/include => include}/netlink-local.h (100%) rename {src/include => include}/netlink-types.h (100%) rename {src/include => include}/netlink/addr.h (100%) rename {src/include => include}/netlink/attr.h (100%) rename {src/include => include}/netlink/cache-api.h (100%) rename {src/include => include}/netlink/cache.h (100%) rename {src/include => include}/netlink/data.h (100%) rename {src/include => include}/netlink/errno.h (100%) rename {src/include => include}/netlink/genl/ctrl.h (100%) rename {src/include => include}/netlink/genl/family.h (100%) rename {src/include => include}/netlink/genl/genl.h (100%) rename {src/include => include}/netlink/genl/mngt.h (100%) rename {src/include => include}/netlink/handlers.h (100%) rename {src/include => include}/netlink/list.h (100%) rename {src/include => include}/netlink/msg.h (100%) rename {src/include => include}/netlink/netlink-compat.h (100%) rename {src/include => include}/netlink/netlink-kernel.h (100%) rename {src/include => include}/netlink/netlink.h (100%) rename {src/include => include}/netlink/object-api.h (100%) rename {src/include => include}/netlink/object.h (100%) rename {src/include => include}/netlink/socket.h (100%) rename {src/include => include}/netlink/types.h (100%) rename {src/include => include}/netlink/utils.h (100%) rename {src/include => include}/netlink/version.h (100%) rename {src/include => include}/unl.h (100%) rename files/libnl-tiny.pc => libnl-tiny.pc (100%) rename src/msg.c => msg.c (100%) rename src/nl.c => nl.c (100%) rename src/object.c => object.c (100%) rename src/socket.c => socket.c (100%) delete mode 100644 src/Makefile rename src/unl.c => unl.c (100%) diff --git a/Makefile b/Makefile index cabbb084218f..6f37160a8c35 100644 --- a/Makefile +++ b/Makefile @@ -1,50 +1,17 @@ -# -# Copyright (C) 2006-2012 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# +CC=gcc +WFLAGS=-Wall +CFLAGS=-O2 +INCLUDES=-Iinclude -include $(TOPDIR)/rules.mk +LIBNAME=libnl-tiny.so -PKG_NAME:=libnl-tiny -PKG_VERSION:=0.1 -PKG_RELEASE:=5 +all: $(LIBNAME) -PKG_LICENSE:=LGPL-2.1 -PKG_MAINTAINER:=Felix Fietkau +%.o: %.c + $(CC) $(WFLAGS) -c -o $@ $(INCLUDES) $(CFLAGS) $< -include $(INCLUDE_DIR)/package.mk +LIBNL_OBJ=nl.o handlers.o msg.o attr.o cache.o cache_mngt.o object.o socket.o error.o +GENL_OBJ=genl.o genl_family.o genl_ctrl.o genl_mngt.o unl.o -define Package/libnl-tiny - SECTION:=libs - CATEGORY:=Libraries - TITLE:=netlink socket library -endef - -define Package/libnl-tiny/description - This package contains a stripped down version of libnl -endef - -TARGET_CFLAGS += $(FPIC) - -define Build/Compile - $(MAKE) -C $(PKG_BUILD_DIR) \ - $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" \ - all -endef - -define Build/InstallDev - $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/include/libnl-tiny - $(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/libnl-tiny - $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/ - $(CP) ./files/libnl-tiny.pc $(1)/usr/lib/pkgconfig -endef - -define Package/libnl-tiny/install - $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/ -endef - -$(eval $(call BuildPackage,libnl-tiny)) +$(LIBNAME): $(LIBNL_OBJ) $(GENL_OBJ) + $(CC) $(CFLAGS) -Wl,-Bsymbolic-functions -shared -o $@ $^ diff --git a/src/attr.c b/attr.c similarity index 100% rename from src/attr.c rename to attr.c diff --git a/src/cache.c b/cache.c similarity index 100% rename from src/cache.c rename to cache.c diff --git a/src/cache_mngt.c b/cache_mngt.c similarity index 100% rename from src/cache_mngt.c rename to cache_mngt.c diff --git a/src/error.c b/error.c similarity index 100% rename from src/error.c rename to error.c diff --git a/src/genl.c b/genl.c similarity index 100% rename from src/genl.c rename to genl.c diff --git a/src/genl_ctrl.c b/genl_ctrl.c similarity index 100% rename from src/genl_ctrl.c rename to genl_ctrl.c diff --git a/src/genl_family.c b/genl_family.c similarity index 100% rename from src/genl_family.c rename to genl_family.c diff --git a/src/genl_mngt.c b/genl_mngt.c similarity index 100% rename from src/genl_mngt.c rename to genl_mngt.c diff --git a/src/handlers.c b/handlers.c similarity index 100% rename from src/handlers.c rename to handlers.c diff --git a/src/include/netlink-generic.h b/include/netlink-generic.h similarity index 100% rename from src/include/netlink-generic.h rename to include/netlink-generic.h diff --git a/src/include/netlink-local.h b/include/netlink-local.h similarity index 100% rename from src/include/netlink-local.h rename to include/netlink-local.h diff --git a/src/include/netlink-types.h b/include/netlink-types.h similarity index 100% rename from src/include/netlink-types.h rename to include/netlink-types.h diff --git a/src/include/netlink/addr.h b/include/netlink/addr.h similarity index 100% rename from src/include/netlink/addr.h rename to include/netlink/addr.h diff --git a/src/include/netlink/attr.h b/include/netlink/attr.h similarity index 100% rename from src/include/netlink/attr.h rename to include/netlink/attr.h diff --git a/src/include/netlink/cache-api.h b/include/netlink/cache-api.h similarity index 100% rename from src/include/netlink/cache-api.h rename to include/netlink/cache-api.h diff --git a/src/include/netlink/cache.h b/include/netlink/cache.h similarity index 100% rename from src/include/netlink/cache.h rename to include/netlink/cache.h diff --git a/src/include/netlink/data.h b/include/netlink/data.h similarity index 100% rename from src/include/netlink/data.h rename to include/netlink/data.h diff --git a/src/include/netlink/errno.h b/include/netlink/errno.h similarity index 100% rename from src/include/netlink/errno.h rename to include/netlink/errno.h diff --git a/src/include/netlink/genl/ctrl.h b/include/netlink/genl/ctrl.h similarity index 100% rename from src/include/netlink/genl/ctrl.h rename to include/netlink/genl/ctrl.h diff --git a/src/include/netlink/genl/family.h b/include/netlink/genl/family.h similarity index 100% rename from src/include/netlink/genl/family.h rename to include/netlink/genl/family.h diff --git a/src/include/netlink/genl/genl.h b/include/netlink/genl/genl.h similarity index 100% rename from src/include/netlink/genl/genl.h rename to include/netlink/genl/genl.h diff --git a/src/include/netlink/genl/mngt.h b/include/netlink/genl/mngt.h similarity index 100% rename from src/include/netlink/genl/mngt.h rename to include/netlink/genl/mngt.h diff --git a/src/include/netlink/handlers.h b/include/netlink/handlers.h similarity index 100% rename from src/include/netlink/handlers.h rename to include/netlink/handlers.h diff --git a/src/include/netlink/list.h b/include/netlink/list.h similarity index 100% rename from src/include/netlink/list.h rename to include/netlink/list.h diff --git a/src/include/netlink/msg.h b/include/netlink/msg.h similarity index 100% rename from src/include/netlink/msg.h rename to include/netlink/msg.h diff --git a/src/include/netlink/netlink-compat.h b/include/netlink/netlink-compat.h similarity index 100% rename from src/include/netlink/netlink-compat.h rename to include/netlink/netlink-compat.h diff --git a/src/include/netlink/netlink-kernel.h b/include/netlink/netlink-kernel.h similarity index 100% rename from src/include/netlink/netlink-kernel.h rename to include/netlink/netlink-kernel.h diff --git a/src/include/netlink/netlink.h b/include/netlink/netlink.h similarity index 100% rename from src/include/netlink/netlink.h rename to include/netlink/netlink.h diff --git a/src/include/netlink/object-api.h b/include/netlink/object-api.h similarity index 100% rename from src/include/netlink/object-api.h rename to include/netlink/object-api.h diff --git a/src/include/netlink/object.h b/include/netlink/object.h similarity index 100% rename from src/include/netlink/object.h rename to include/netlink/object.h diff --git a/src/include/netlink/socket.h b/include/netlink/socket.h similarity index 100% rename from src/include/netlink/socket.h rename to include/netlink/socket.h diff --git a/src/include/netlink/types.h b/include/netlink/types.h similarity index 100% rename from src/include/netlink/types.h rename to include/netlink/types.h diff --git a/src/include/netlink/utils.h b/include/netlink/utils.h similarity index 100% rename from src/include/netlink/utils.h rename to include/netlink/utils.h diff --git a/src/include/netlink/version.h b/include/netlink/version.h similarity index 100% rename from src/include/netlink/version.h rename to include/netlink/version.h diff --git a/src/include/unl.h b/include/unl.h similarity index 100% rename from src/include/unl.h rename to include/unl.h diff --git a/files/libnl-tiny.pc b/libnl-tiny.pc similarity index 100% rename from files/libnl-tiny.pc rename to libnl-tiny.pc diff --git a/src/msg.c b/msg.c similarity index 100% rename from src/msg.c rename to msg.c diff --git a/src/nl.c b/nl.c similarity index 100% rename from src/nl.c rename to nl.c diff --git a/src/object.c b/object.c similarity index 100% rename from src/object.c rename to object.c diff --git a/src/socket.c b/socket.c similarity index 100% rename from src/socket.c rename to socket.c diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 6f37160a8c35..000000000000 --- a/src/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -CC=gcc -WFLAGS=-Wall -CFLAGS=-O2 -INCLUDES=-Iinclude - -LIBNAME=libnl-tiny.so - -all: $(LIBNAME) - -%.o: %.c - $(CC) $(WFLAGS) -c -o $@ $(INCLUDES) $(CFLAGS) $< - -LIBNL_OBJ=nl.o handlers.o msg.o attr.o cache.o cache_mngt.o object.o socket.o error.o -GENL_OBJ=genl.o genl_family.o genl_ctrl.o genl_mngt.o unl.o - -$(LIBNAME): $(LIBNL_OBJ) $(GENL_OBJ) - $(CC) $(CFLAGS) -Wl,-Bsymbolic-functions -shared -o $@ $^ diff --git a/src/unl.c b/unl.c similarity index 100% rename from src/unl.c rename to unl.c From patchwork Mon Oct 21 09:36:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1180432 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N0h9dUKT"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46xWkk73mBz9sCJ for ; Mon, 21 Oct 2019 20:37:18 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9ONgXjm+adtcw+gFhzA2+G9HjJ3VtqwjEnWa1nB32EQ=; b=N0h9dUKTc4xx+A h1KJVUlRuGf9mRI1hupCcx5K3iGKAe4xrkcVHnGh/TxzuHWabEhIGtqEzaIQmH8WoqLUR+t7C70KU vsueuS1+DT0liBpZcNC4qxpSPABXpJM/NbNzE/+WgYVOgK/rTkmuiKd3bkErcW9bw43sQOsPkL7ow RR/+KHfosrvEawCLRJ5PX9PUwh3uTVDdb1+d7MuJ+YAnROi35Rug91kpXHcv0F8LRNV4427yvw7mF J68BIdkmKfiYycwvJppIbE7MaZwGnpdpgnD9Gna23o2E9SszPZVAYZxaw/reRcVoY/yknCuQSYR2y Pm5o8YbuurwziqRcYjpw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU7c-00067y-1n; Mon, 21 Oct 2019 09:37:04 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU7O-0005tL-QU for openwrt-devel@lists.openwrt.org; Mon, 21 Oct 2019 09:36:52 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id B62CB35DB; Mon, 21 Oct 2019 11:36:45 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 91b1d8eb; Mon, 21 Oct 2019 11:36:35 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Mon, 21 Oct 2019 11:36:39 +0200 Message-Id: <20191021093642.3118-2-ynezz@true.cz> In-Reply-To: <20191021093642.3118-1-ynezz@true.cz> References: <20191021093642.3118-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191021_023651_015239_099B908C X-CRM114-Status: UNSURE ( 7.72 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH libnl-tiny 2/5] convert into CMake project X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Aligning it with other C based projects. Signed-off-by: Petr Štetiar --- CMakeLists.txt | 38 ++++++++++++++++++++++++++++++++++++++ Makefile | 17 ----------------- libnl-tiny.pc | 10 ---------- libnl-tiny.pc.in | 10 ++++++++++ 4 files changed, 48 insertions(+), 27 deletions(-) create mode 100644 CMakeLists.txt delete mode 100644 Makefile delete mode 100644 libnl-tiny.pc create mode 100644 libnl-tiny.pc.in diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000000..4924586e893c --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,38 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 3.0) + +PROJECT(libnl-tiny C) +INCLUDE(GNUInstallDirs) + +INCLUDE_DIRECTORIES(include) + +ADD_DEFINITIONS(-Wall -Werror) + +ADD_LIBRARY(nl-tiny SHARED + attr.c + cache.c + cache_mngt.c + error.c + genl.c + genl_ctrl.c + genl_family.c + genl_mngt.c + handlers.c + msg.c + nl.c + object.c + socket.c + unl.c +) + +CONFIGURE_FILE( + "${CMAKE_CURRENT_SOURCE_DIR}/libnl-tiny.pc.in" + "${CMAKE_CURRENT_BINARY_DIR}/libnl-tiny.pc" + @ONLY +) + +INSTALL(TARGETS nl-tiny LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) +INSTALL( + DIRECTORY ${CMAKE_SOURCE_DIR}/include/ + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libnl-tiny + FILES_MATCHING PATTERN "*.h" +) diff --git a/Makefile b/Makefile deleted file mode 100644 index 6f37160a8c35..000000000000 --- a/Makefile +++ /dev/null @@ -1,17 +0,0 @@ -CC=gcc -WFLAGS=-Wall -CFLAGS=-O2 -INCLUDES=-Iinclude - -LIBNAME=libnl-tiny.so - -all: $(LIBNAME) - -%.o: %.c - $(CC) $(WFLAGS) -c -o $@ $(INCLUDES) $(CFLAGS) $< - -LIBNL_OBJ=nl.o handlers.o msg.o attr.o cache.o cache_mngt.o object.o socket.o error.o -GENL_OBJ=genl.o genl_family.o genl_ctrl.o genl_mngt.o unl.o - -$(LIBNAME): $(LIBNL_OBJ) $(GENL_OBJ) - $(CC) $(CFLAGS) -Wl,-Bsymbolic-functions -shared -o $@ $^ diff --git a/libnl-tiny.pc b/libnl-tiny.pc deleted file mode 100644 index af79cd301e23..000000000000 --- a/libnl-tiny.pc +++ /dev/null @@ -1,10 +0,0 @@ -prefix=/usr -exec_prefix=/usr -libdir=${exec_prefix}/lib -includedir=${prefix}/include/libnl-tiny - -Name: libnl-tiny -Description: Convenience library for netlink sockets -Version: 2.0 -Libs: -L${libdir} -lnl-tiny -Cflags: -I${includedir} diff --git a/libnl-tiny.pc.in b/libnl-tiny.pc.in new file mode 100644 index 000000000000..691ba8261b28 --- /dev/null +++ b/libnl-tiny.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=${prefix} +libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@ +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@/libnl-tiny + +Name: libnl-tiny +Description: Convenience library for netlink sockets +Version: 2.0 +Libs: -L${libdir} -lnl-tiny +Cflags: -I${includedir} From patchwork Mon Oct 21 09:36:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1180431 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Gzfo8lub"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46xWkT1TRzz9sCJ for ; Mon, 21 Oct 2019 20:37:04 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aIttGEraTGqJiCUkljgsnS/G4uzhQs7xGu8wS4Db4X0=; b=Gzfo8lubwq6ZEQ w7T6RReyV2pITtpEYVEnVAtk5ELVIdGf0/KMI4XzdsU7nxof8Qcm2Ot6a2a1HIq6MJLkvEJxmK1Q7 YUNFx4Am3u+a1ibjhMWGCKhnYzrAXf/X9NbOqpXPFFXwmw076vEyd8D7xLDlvb+yS5nJL6aBJvoF2 6BbfNkeyVXecv3YADL1d8Nt24rZVV7GzLJBet7VuYMZrf1IqehJMX2FadDzlbqj5S8QC1emuwZqhE oaDclDArxr0vWYgCQy2nZzhuFv/Azrs9GZELXeN4A0ByCgvwcatc3MSm9QTIL7RUL9jM0MI0+CTn5 u7fQpudXLIiZ2njAzk6w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU7R-0005vG-NU; Mon, 21 Oct 2019 09:36:53 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU7O-0005tN-OT for openwrt-devel@lists.openwrt.org; Mon, 21 Oct 2019 09:36:52 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 0F30735DC; Mon, 21 Oct 2019 11:36:46 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id ea5d50e8; Mon, 21 Oct 2019 11:36:35 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Mon, 21 Oct 2019 11:36:40 +0200 Message-Id: <20191021093642.3118-3-ynezz@true.cz> In-Reply-To: <20191021093642.3118-1-ynezz@true.cz> References: <20191021093642.3118-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191021_023650_952461_DF3316F6 X-CRM114-Status: UNSURE ( 7.67 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH libnl-tiny 3/5] cmake: enable extra compiler checks X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Let's enforce additional automatic checks enforced by the compiler in order to catch possible errors during compilation. Signed-off-by: Petr Štetiar --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4924586e893c..e7d7f86199cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,7 +5,7 @@ INCLUDE(GNUInstallDirs) INCLUDE_DIRECTORIES(include) -ADD_DEFINITIONS(-Wall -Werror) +ADD_DEFINITIONS(-Wall -Werror -Wextra -Wno-unused-parameter) ADD_LIBRARY(nl-tiny SHARED attr.c From patchwork Mon Oct 21 09:36:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1180435 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="neeAB2IL"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46xWlH1Td3z9sPL for ; Mon, 21 Oct 2019 20:37:47 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qUj7HMKjunDi5z0cPe8YOxIMqm20uLDQtq9ZmvJKKWQ=; b=neeAB2ILAQexiN aWk/tfvx2T4oa5r+UF1HGMglaXvzyw6uVKG7WC6us6mMBfuJ8ld2uv2yv26Eir2ppVwUJNWbo5Br3 ieGfVcZB8H+IT4KN94GKyCvMb0vgDd3z3nW03EX9Mog9xgNbbbyffpXLIvev0/vcX9gP2sd8xxUOn 0IywvEd9HVZ4gK/af2yok3xn6ubF65q0L2QAKZ3W97cL+J7lix7ORSzJmQbIzV8QERkliLAsHZuQR Adf1gPesNKHCmCG1zMsejF5FfJopX1NeRRr+LBNxlWfDdZrms1kweolgn4pPiBPLKWUSnHaxFzv8e pzJblrscnZtuq3jNOb0A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU83-0006kS-Tv; Mon, 21 Oct 2019 09:37:31 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU7O-0005tO-QN for openwrt-devel@lists.openwrt.org; Mon, 21 Oct 2019 09:36:54 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 517EE35DD; Mon, 21 Oct 2019 11:36:46 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 3389401d; Mon, 21 Oct 2019 11:36:36 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Mon, 21 Oct 2019 11:36:41 +0200 Message-Id: <20191021093642.3118-4-ynezz@true.cz> In-Reply-To: <20191021093642.3118-1-ynezz@true.cz> References: <20191021093642.3118-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191021_023651_172470_7A5E4919 X-CRM114-Status: GOOD ( 11.66 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH libnl-tiny 4/5] iron out all extra compiler warnings X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org gcc 9.1 on x86/64 has reported following: attr.c:403:19: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare] genl.c:154:24: error: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Werror=sign-compare] genl_mngt.c:157:22: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare] msg.c:190:20: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Werror=sign-compare] msg.c:192:18: error: comparison of integer expressions of different signedness: ‘__u32’ {aka ‘const unsigned int’} and ‘int’ [-Werror=sign-compare] msg.c:361:10: error: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare] nl.c:428:18: error: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare] nl.c:602:23: error: comparison of integer expressions of different signedness: ‘__u32’ {aka ‘unsigned int’} and ‘int’ [-Werror=sign-compare] Signed-off-by: Petr Štetiar --- attr.c | 6 ++++-- genl.c | 2 +- genl_mngt.c | 2 +- msg.c | 8 +++++--- nl.c | 4 ++-- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/attr.c b/attr.c index e0f50611cff9..eae91e52bcac 100644 --- a/attr.c +++ b/attr.c @@ -400,9 +400,11 @@ */ int nla_ok(const struct nlattr *nla, int remaining) { - return remaining >= sizeof(*nla) && + size_t r = remaining; + + return r >= sizeof(*nla) && nla->nla_len >= sizeof(*nla) && - nla->nla_len <= remaining; + nla->nla_len <= r; } /** diff --git a/genl.c b/genl.c index 055be919e1d3..f1df3f060c87 100644 --- a/genl.c +++ b/genl.c @@ -151,7 +151,7 @@ int genlmsg_valid_hdr(struct nlmsghdr *nlh, int hdrlen) return 0; ghdr = nlmsg_data(nlh); - if (genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) + if ((unsigned) genlmsg_len(ghdr) < NLMSG_ALIGN(hdrlen)) return 0; return 1; diff --git a/genl_mngt.c b/genl_mngt.c index 246521f696a2..3b603c7ac9bb 100644 --- a/genl_mngt.c +++ b/genl_mngt.c @@ -154,7 +154,7 @@ int genl_register(struct nl_cache_ops *ops) goto errout; } - if (ops->co_hdrsize < GENL_HDRSIZE(0)) { + if ((size_t) ops->co_hdrsize < GENL_HDRSIZE(0)) { err = -NLE_INVAL; goto errout; } diff --git a/msg.c b/msg.c index b502047c4c74..5992e381813b 100644 --- a/msg.c +++ b/msg.c @@ -187,9 +187,11 @@ static size_t default_msg_size = 4096; */ int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) { - return (remaining >= sizeof(struct nlmsghdr) && + size_t r = remaining; + + return (r >= sizeof(struct nlmsghdr) && nlh->nlmsg_len >= sizeof(struct nlmsghdr) && - nlh->nlmsg_len <= remaining); + nlh->nlmsg_len <= r); } /** @@ -358,7 +360,7 @@ struct nl_msg *nlmsg_alloc_simple(int nlmsgtype, int flags) */ void nlmsg_set_default_size(size_t max) { - if (max < nlmsg_total_size(0)) + if (max < (size_t) nlmsg_total_size(0)) max = nlmsg_total_size(0); default_msg_size = max; diff --git a/nl.c b/nl.c index 2fb866eca903..2649470f542f 100644 --- a/nl.c +++ b/nl.c @@ -425,7 +425,7 @@ retry: } } - if (iov.iov_len < n || + if (iov.iov_len < (size_t) n || msg.msg_flags & MSG_TRUNC) { /* Provided buffer is not long enough, enlarge it * and try again. */ @@ -599,7 +599,7 @@ continue_reading: else if (hdr->nlmsg_type == NLMSG_ERROR) { struct nlmsgerr *e = nlmsg_data(hdr); - if (hdr->nlmsg_len < nlmsg_msg_size(sizeof(*e))) { + if (hdr->nlmsg_len < (unsigned) nlmsg_msg_size(sizeof(*e))) { /* Truncated error message, the default action * is to stop parsing. The user may overrule * this action by returning NL_SKIP or From patchwork Mon Oct 21 09:36:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1180433 X-Patchwork-Delegate: ynezz@true.cz Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="a+PZu9W7"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46xWks16Dsz9sCJ for ; Mon, 21 Oct 2019 20:37:25 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AO3wADK1n4sP2Zx86i8LsasYC2k9+NUNTRTmqYGsv+A=; b=a+PZu9W7seUm7k Nf5aiFvURnbbZaJCeykrd1BtJ4oQS2zMCT8tv6A+cGc7/zaf4d6bxh4ArOvT7cxQZReRJfGTzZREc xuJNCC5ku17rvbRYwPy+swnp7sp4HzPr1GJrj6qPrbMjNpe+Eu35AYEOlMXxtIT0noPOzVAFmOcPU Yr/HRhFikc6mtAxXty6WU3BkIU25OHCI8MJxMuMq/b1cUJ8I/pI7R97eIT9OAQV88c9at7RKIXWZd dOYRNAhCYMcLDDdRO9krOCKHNzWpN5Kbx852GIHzajUqjfueEPUQYGbeT+++ZPMJh+9MxCkde6G7p vZpPPh1H+t5381avjQIA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU7r-0006Py-RI; Mon, 21 Oct 2019 09:37:19 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iMU7O-0005tQ-Qi for openwrt-devel@lists.openwrt.org; Mon, 21 Oct 2019 09:36:53 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 94BFD35DE; Mon, 21 Oct 2019 11:36:46 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id b3579eee; Mon, 21 Oct 2019 11:36:36 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Mon, 21 Oct 2019 11:36:42 +0200 Message-Id: <20191021093642.3118-5-ynezz@true.cz> In-Reply-To: <20191021093642.3118-1-ynezz@true.cz> References: <20191021093642.3118-1-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191021_023651_056873_23CC73F2 X-CRM114-Status: UNSURE ( 7.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record Subject: [OpenWrt-Devel] [PATCH libnl-tiny 5/5] add initial GitLab CI support X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Uses currently proof-of-concept openwrt-ci[1] in order to: * improve the quality of the codebase in various areas * decrease code review time and help merging contributions faster * get automagic feedback loop on various platforms and tools - out of tree build with OpenWrt SDK on following targets: * ath79-generic * imx6-generic * malta-be * mvebu-cortexa53 - out of tree native build on x86/64 with GCC (versions 7, 8, 9) and Clang 9 - out of tree native x86/64 static code analysis with cppcheck and scan-build from Clang 9 1. https://gitlab.com/ynezz/openwrt-ci/ Signed-off-by: Petr Štetiar --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000000..56180ce3c915 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,3 @@ +include: + - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/main.yml + - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/pipeline.yml