From a23197980e40d4d9414bcfaf59005a1dc2a89251 Mon Sep 17 00:00:00 2001 From: sreejith Date: Wed, 29 Mar 2017 01:15:02 -0400 Subject: Added vpp intial source code from master branch 17.01.1 Change-Id: I81bdace6f330825a1746a853766779dfb24765fd Signed-off-by: sreejith --- vpp/build-root/emacs-lisp/README | 86 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 vpp/build-root/emacs-lisp/README (limited to 'vpp/build-root/emacs-lisp/README') diff --git a/vpp/build-root/emacs-lisp/README b/vpp/build-root/emacs-lisp/README new file mode 100644 index 00000000..483e1c39 --- /dev/null +++ b/vpp/build-root/emacs-lisp/README @@ -0,0 +1,86 @@ +How to construct a complete plugin using the emacs skeletons + +0. Install open-vpp, including the development package. + +1. Load emacs skeletons + + M-x find-file all-skel.el + M-x eval-buffer + +2. Pick a single-word, lower-case name for your plugin. For example: macswap. +Hereafter, we'll refer to the selected name as . + +3. Generate the entire plugin: + + M-x make-plugin + Plugin-name: + +Or, generate each file individually: + +3. Create the required directories, e.g. under .../vpp + + $ mkdir -p -plugin/ + +4. Create -plugin/{configure.ac,Makefile.am} + + M-x find-file -plugin/configure.ac + M-x plugin-configure-skel + + M-x find-file -plugin/Makefile.am + M-x skel-plugin-makefile + +5. Create the api skeleton + M-x find-file -plugin//.api + M-x skel-plugin-api + +6. Create the api message enumeration header file + M-x find-file -plugin//_msg_enum.h + M-x skel-plugin-msg-enum + +7. Create the "all-api" header file + M-x find-file -plugin//_all_api_h.h + M-x skel-plugin-all-apih + +8. Create the main data structure definition header file + M-x find-file -plugin//.h + M-x skel-plugin-h + +9. Create the plugin main C file + M-x find-file -plugin//.c + M-x skel-plugin-main + +10. Create the vpp-api-test plugin main C file + M-x find-file -plugin//_test.c + M-x skel-plugin-test + +11. Create the data plane packet processing node + M-x find-file -plugin//node.c + M-x skel-plugin-node + +12. Process autotools input files + + $ cd -plugin + $ autoreconf -i -f + +13. Build the plugin skeleton + + $ mkdir build + $ cd build + $ ../configure --with-plugin-toolkit + $ make + $ sudo make install + + + + + + + + + + + + + + + -- cgit 1.2.3-korg