Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/46659/?format=api
http://patches.dpdk.org/api/patches/46659/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181011194629.4699-1-bluca@debian.org/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20181011194629.4699-1-bluca@debian.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20181011194629.4699-1-bluca@debian.org", "date": "2018-10-11T19:46:29", "name": "build: add meson.build for kni kernel module", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "84243d6db321e849badb9b1e27f38eb88d68cbd4", "submitter": { "id": 823, "url": "http://patches.dpdk.org/api/people/823/?format=api", "name": "Luca Boccassi", "email": "bluca@debian.org" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20181011194629.4699-1-bluca@debian.org/mbox/", "series": [ { "id": 1852, "url": "http://patches.dpdk.org/api/series/1852/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1852", "date": "2018-10-11T19:46:29", "name": "build: add meson.build for kni kernel module", "version": 1, "mbox": "http://patches.dpdk.org/series/1852/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/46659/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/46659/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8DB0C1B539;\n\tThu, 11 Oct 2018 21:46:37 +0200 (CEST)", "from mail-wr1-f66.google.com (mail-wr1-f66.google.com\n\t[209.85.221.66]) by dpdk.org (Postfix) with ESMTP id E20871B526\n\tfor <dev@dpdk.org>; Thu, 11 Oct 2018 21:46:35 +0200 (CEST)", "by mail-wr1-f66.google.com with SMTP id l6-v6so10570817wrt.1\n\tfor <dev@dpdk.org>; Thu, 11 Oct 2018 12:46:35 -0700 (PDT)", "from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556])\n\tby smtp.gmail.com with ESMTPSA id\n\tc18-v6sm8425682wrr.74.2018.10.11.12.46.33\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tThu, 11 Oct 2018 12:46:33 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=Obc4BQt1xGFaO+jkNsbxIBSbrEQJ+bsv7cVxoBp3N/s=;\n\tb=ZMEWI5hReL+Amkg2SSqAZebklwlIhKhcJ0LEjzsmXXO/GSI+DGlz+FUBxHI2xUDL1k\n\tuP+9iWLTkO2tlcezx9eSL7ofAGDnx94l3kZQmH04drGn1ZFOCPH5aPIiJ6yffR+ONYAa\n\tbpLjG2uMRY2cCabm1pgLDHyMkTq30n6778wVzezsnAkMjTO43W/46DOPp1sKIfrA7Aej\n\tDJJRrxIL55JVIfaPBFRj8aT0QGG1bsk/XlvHGMQ1qZ8YzNmvtVJ8oYmeF4sP9YE5t0wc\n\tgO0qf3+AweDaJZbVgrAj/FXzu7TWKFHJ0+nY0VKR8ZoZQRxqPyKRGYisywVBDO8Aiqm1\n\tGIrQ==", "X-Gm-Message-State": "ABuFfohRx8Wbga0gjgZhdb+MHepZnfKVxE3NnnADOKkKP1K98rSV3nG7\n\tmPSyrkwxfkbfFsjPTcgZmwCI6emv", "X-Google-Smtp-Source": "ACcGV62HimZVEZT9JofX6LiQXh/dWcAAIoPmBlwYEdHuNjrzfBuTVXmsItzVmXD3bP+m4jVUnCZDGg==", "X-Received": "by 2002:adf:d841:: with SMTP id\n\tk1-v6mr2866451wrl.26.1539287195018; \n\tThu, 11 Oct 2018 12:46:35 -0700 (PDT)", "From": "Luca Boccassi <bluca@debian.org>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com, ferruh.yigit@intel.com,\n\tLuca Boccassi <bluca@debian.org>", "Date": "Thu, 11 Oct 2018 20:46:29 +0100", "Message-Id": "<20181011194629.4699-1-bluca@debian.org>", "X-Mailer": "git-send-email 2.19.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH] build: add meson.build for kni kernel module", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "A Kbuild is also included to allow users to use DKMS natively without\nadditional code.\n\nSigned-off-by: Luca Boccassi <bluca@debian.org>\n---\nbuild-tested on debian sid am64\n\n kernel/linux/kni/Kbuild | 8 ++++++\n kernel/linux/kni/meson.build | 51 ++++++++++++++++++++++++++++++++++++\n kernel/linux/meson.build | 2 +-\n 3 files changed, 60 insertions(+), 1 deletion(-)\n create mode 100644 kernel/linux/kni/Kbuild\n create mode 100644 kernel/linux/kni/meson.build", "diff": "diff --git a/kernel/linux/kni/Kbuild b/kernel/linux/kni/Kbuild\nnew file mode 100644\nindex 0000000000..de5c27f328\n--- /dev/null\n+++ b/kernel/linux/kni/Kbuild\n@@ -0,0 +1,8 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n+\n+ccflags-y := $(MODULE_CFLAGS)\n+obj-m := rte_kni.o\n+rte_kni-y := $(patsubst $(src)/%.c,%.o,$(wildcard $(src)/*.c)) \\\n+ $(patsubst $(src)/%.c,%.o,$(wildcard $(src)/ethtool/ixgbe/*.c)) \\\n+ $(patsubst $(src)/%.c,%.o,$(wildcard $(src)/ethtool/igb/*.c))\ndiff --git a/kernel/linux/kni/meson.build b/kernel/linux/kni/meson.build\nnew file mode 100644\nindex 0000000000..cf881b1c1f\n--- /dev/null\n+++ b/kernel/linux/kni/meson.build\n@@ -0,0 +1,51 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Luca Boccassi <bluca@debian.org>\n+\n+kni_mkfile = custom_target('rte_kni_makefile',\n+\toutput: 'Makefile',\n+\tcommand: ['touch', '@OUTPUT@'])\n+\n+kni_sources = [\n+\t'kni_ethtool.c',\n+\t'kni_misc.c',\n+\t'kni_net.c',\n+\t'ethtool/igb/e1000_82575.c',\n+\t'ethtool/igb/e1000_api.c',\n+\t'ethtool/igb/e1000_i210.c',\n+\t'ethtool/igb/e1000_mac.c',\n+\t'ethtool/igb/e1000_manage.c',\n+\t'ethtool/igb/e1000_mbx.c',\n+\t'ethtool/igb/e1000_nvm.c',\n+\t'ethtool/igb/e1000_phy.c',\n+\t'ethtool/igb/igb_ethtool.c',\n+\t'ethtool/igb/igb_main.c',\n+\t'ethtool/igb/igb_param.c',\n+\t'ethtool/igb/igb_vmdq.c',\n+\t'ethtool/ixgbe/ixgbe_82598.c',\n+\t'ethtool/ixgbe/ixgbe_82599.c',\n+\t'ethtool/ixgbe/ixgbe_api.c',\n+\t'ethtool/ixgbe/ixgbe_common.c',\n+\t'ethtool/ixgbe/ixgbe_ethtool.c',\n+\t'ethtool/ixgbe/ixgbe_main.c',\n+\t'ethtool/ixgbe/ixgbe_phy.c',\n+\t'ethtool/ixgbe/ixgbe_x540.c',\n+\t'ethtool/ixgbe/kcompat.c',\n+\t'Kbuild']\n+\n+custom_target('rte_kni',\n+\tinput: kni_sources,\n+\toutput: 'rte_kni.ko',\n+\tcommand: ['make', '-C', kernel_dir,\n+\t\t'M=' + meson.current_build_dir(),\n+\t\t'src=' + meson.current_source_dir(),\n+\t\t'MODULE_CFLAGS=-include ' + meson.source_root() + '/config/rte_config.h' +\n+\t\t' -I' + meson.source_root() + '/lib/librte_eal/common/include' +\n+\t\t' -I' + meson.source_root() + '/lib/librte_eal/linuxapp/eal/include' +\n+\t\t' -I' + meson.build_root() +\n+\t\t' -I' + meson.current_source_dir() + '/ethtool/ixgbe' +\n+\t\t' -I' + meson.current_source_dir() + '/ethtool/igb',\n+\t\t'modules'],\n+\tdepends: kni_mkfile,\n+\tinstall: true,\n+\tinstall_dir: kernel_dir + '/../extra/dpdk',\n+\tbuild_by_default: get_option('enable_kmods'))\ndiff --git a/kernel/linux/meson.build b/kernel/linux/meson.build\nindex a924c7b6fb..5b7ec06e1d 100644\n--- a/kernel/linux/meson.build\n+++ b/kernel/linux/meson.build\n@@ -1,7 +1,7 @@\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Intel Corporation\n \n-subdirs = ['igb_uio']\n+subdirs = ['igb_uio', 'kni']\n \n WARN_CROSS_COMPILE='Need \"kernel_dir\" option for kmod compilation when cross-compiling'\n WARN_NO_HEADERS='Cannot compile kernel modules as requested - are kernel headers installed?'\n", "prefixes": [] }{ "id": 46659, "url": "