From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v4] doc: add contributors guide Date: Sun, 13 Dec 2015 23:35:20 +0100 Message-ID: <1559545.nMrvn59G5L@xps13> References: <1444927893-19845-1-git-send-email-john.mcnamara@intel.com> <1448023573-25103-1-git-send-email-john.mcnamara@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: John McNamara Return-path: Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com [74.125.82.52]) by dpdk.org (Postfix) with ESMTP id 9EBD937A6 for ; Sun, 13 Dec 2015 23:36:37 +0100 (CET) Received: by mail-wm0-f52.google.com with SMTP id n186so95661858wmn.1 for ; Sun, 13 Dec 2015 14:36:37 -0800 (PST) In-Reply-To: <1448023573-25103-1-git-send-email-john.mcnamara@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Thanks for this very useful doc, John. 2015-11-20 12:46, John McNamara: > +* Run ``make install``, ``make examples`` and ``make test`` and build the shared and combined libraries > + to ensure the changes haven't broken existing code: > + > + .. code-block:: console > + > + export RTE_TARGET=x86_64-native-linuxapp-gcc > + > + make T=$RTE_TARGET install > + make T=$RTE_TARGET install CONFIG_RTE_BUILD_SHARED_LIB=y \ > + CONFIG_RTE_BUILD_COMBINE_LIBS=y > + make T=$RTE_TARGET examples > + make T=$RTE_TARGET test These commands are superseded by a new syntax and may be replaced by the use of the script test-build.sh. > +* Use the imperative of the verb (like instructions to the code base). > + For example:: > + > + ixgbe: fix compilarion in 32 bit Typo. This example is not needed (there is one above). > +The kernel guidelines tested by ``checkpatch`` don't match the DPDK Coding Style guidelines exactly but > +they provide a good indication of conformance. > +Warnings about kernel data types or about split strings can be ignored:: > + > + /path/checkpatch.pl --ignore PREFER_KERNEL_TYPES,SPLIT_STRING -q files*.patch The script checkpatches.sh should be used. It includes a list of options to ignore. > +Ensure that the code compiles with ``gcc`` and ``clang``:: > + > + make T=x86_64-native-linuxapp-gcc install > + make T=x86_64-native-linuxapp-clang install It may be done with scripts/test-build.sh x86_64-native-linuxapp-gcc x86_64-native-linuxapp-clang My preferred configs are: x86_64-native-linuxapp-gcc+shared+next x86_64-native-linuxapp-clang+shared+combined i686-native-linuxapp-gcc+combined And these options are common: export DPDK_DEP_ZLIB=y export DPDK_DEP_PCAP=y export DPDK_DEP_SSL=y > +Confirm that the changes haven't broken any existing code by running ``make install``, ``make examples`` and > +``make test`` and building the shared and combined libraries: > + > + .. code-block:: console > + > + export RTE_TARGET=x86_64-native-linuxapp-gcc > + > + make T=$RTE_TARGET install > + make T=$RTE_TARGET install CONFIG_RTE_BUILD_SHARED_LIB=y \ > + CONFIG_RTE_BUILD_COMBINE_LIBS=y > + make T=$RTE_TARGET examples > + make T=$RTE_TARGET test