reserve 'make install' for future use
PATCH 1/1 reserve 'make install' for future use
There has been some discussion on the list about various ways to get DPDK more standardised in how it compiles and how it can be installed into a system as a set of binaries.
One of the issues we face in that is that the 'make install' command is used in DPDK to compile a copy of the SDK but not to place the resultant binaries in the filesystem like other packages do. In order to allow us to have the option to use 'make install' in its common meaning in a future release we need to replace it in our packages, and allow some time for the change to a new command to bed-in.
This patchset therefore proposed to change "make install" to "make sdk" [and "make uninstall" to "make clean-sdk"]. Using the old commands now prints out an error message informing the user to use the new versions.
These new commands are ones that made sense to me - I'm happy enough to change them for something else people feel is more appropriate. The key point here is to move away from using "make install".
I would ask that if general agreement on this can be reached that such a change be considered for 2.2, even though it is late in the day, as "freeing up" the make install command will potentially take multiple releases as not everyone is on the latest version, and so waiting till 2.3 to make a change will push out any future re-use of a "make install" command by 4 months.
Regards,
/Bruce
Bruce Richardson (1):
mk: rename 'make install' to 'make sdk'
doc/guides/freebsd_gsg/build_dpdk.rst | 16 ++--- doc/guides/linux_gsg/build_dpdk.rst | 22 +++--- doc/guides/nics/intel_vf.rst | 2 +- doc/guides/prog_guide/dev_kit_root_make_help.rst | 18 ++--- doc/guides/sample_app_ug/tep_termination.rst | 3 +- doc/guides/sample_app_ug/vhost.rst | 3 +- doc/guides/testpmd_app_ug/build_app.rst | 2 +- doc/guides/xen/pkt_switch.rst | 2 +- mk/rte.sdk.mk | 88 ++++++++++++++++++++++++ mk/rte.sdkinstall.mk | 87 ----------------------- mk/rte.sdkroot.mk | 13 +++- scripts/gen-build-mk.sh | 2 +- 12 files changed, 133 insertions(+), 125 deletions(-) create mode 100644 mk/rte.sdk.mk delete mode 100644 mk/rte.sdkinstall.mk
Signature · 1 line
2.5.0
PATCH 1/1 mk: rename 'make install' to 'make sdk'
Since 'make install' is the standard command for installing packages into the filesystem of a system - generally in /usr/local/ - it's use to trigger compilation of the DPDK SDK was both confusing and preventing a "true" 'make install' command from being implemented.
As a first step to improving our build and install system, this patch renames the 'make install' and 'make uninstall' commands to 'make sdk' and 'make clean-sdk' respectively.
--- doc/build-sdk-quick.txt | 4 +- doc/guides/freebsd_gsg/build_dpdk.rst | 16 ++--- doc/guides/linux_gsg/build_dpdk.rst | 22 +++--- doc/guides/nics/intel_vf.rst | 2 +- doc/guides/prog_guide/dev_kit_root_make_help.rst | 18 ++--- doc/guides/rel_notes/deprecation.rst | 4 ++ doc/guides/rel_notes/release_2_2.rst | 7 ++ doc/guides/sample_app_ug/tep_termination.rst | 3 +- doc/guides/sample_app_ug/vhost.rst | 3 +- doc/guides/testpmd_app_ug/build_app.rst | 2 +- doc/guides/xen/pkt_switch.rst | 2 +- mk/rte.sdk.mk | 88 ++++++++++++++++++++++++ mk/rte.sdkinstall.mk | 87 ----------------------- mk/rte.sdkroot.mk | 13 +++- scripts/gen-build-mk.sh | 2 +- tools/setup.sh | 6 +- 16 files changed, 149 insertions(+), 130 deletions(-) create mode 100644 mk/rte.sdk.mk delete mode 100644 mk/rte.sdkinstall.mk
doc/build-sdk-quick.txt +2 -2
@@ -5,8 +5,8 @@ Build commands all same as build (default rule) build build in a configured directory clean remove files but keep configuration - install build many targets (wildcard allowed) and install in DESTDIR - uninstall remove all installed targets + sdk build many targets (wildcard allowed) in DESTDIR + clean-sdk remove all built targets examples build examples for given targets (T=) examples_clean clean examples for given targets (T=) Build variables
doc/guides/freebsd_gsg/build_dpdk.rst +8 -8
@@ -114,7 +114,7 @@ user. For the installation of the DPDK, the default options were used. make config -recursive command until no more dialogs are seen. -Install the DPDK and Browse Sources +Prepare the DPDK and Browse Sources ----------------------------------- First, uncompress the archive and move to the DPDK source directory:
@@ -136,8 +136,8 @@ The DPDK is composed of several directories: * config, tools, scripts, mk: Framework-related makefiles, scripts and configuration -Installation of the DPDK Target Environments --------------------------------------------- +Compiling the DPDK SDK for a Target Environment +----------------------------------------------- The format of a DPDK target is:
@@ -168,23 +168,23 @@ directory in the form of: on which it is built. For more information on this setting, and its possible values, see the *DPDK Programmers Guide*. -To install and make the target, use "gmake install T=<target>". +To make the target, use "gmake sdk T=<target>". For example to compile for FreeBSD* use: .. code-block:: console - gmake install T=x86_64-native-bsdapp-clang + gmake sdk T=x86_64-native-bsdapp-clang .. note:: If the compiler binary to be used does not correspond to that given in the TOOLCHAIN part of the target, the compiler command may need to be explicitly specified. For example, if compiling for gcc, where the gcc binary is called - gcc4.8, the command would need to be "gmake install T=<target> CC=gcc4.8". + gcc4.8, the command would need to be "gmake sdk T=<target> CC=gcc4.8". -Browsing the Installed DPDK Environment Target ----------------------------------------------- +Browsing the Compiled DPDK SDK +------------------------------ Once a target is created, it contains all the libraries and header files for the DPDK environment that are required to build customer applications.
doc/guides/linux_gsg/build_dpdk.rst +11 -11
@@ -35,8 +35,8 @@ Compiling the DPDK Target from Source Parts of this process can also be done using the setup script described in Chapter 6 of this document. -Install the DPDK and Browse Sources ------------------------------------ +Prepare DPDK and Browse Sources +------------------------------- First, uncompress the archive and move to the uncompressed DPDK source directory:
@@ -59,8 +59,8 @@ The DPDK is composed of several directories: * config, tools, scripts, mk: Framework-related makefiles, scripts and configuration -Installation of DPDK Target Environments ----------------------------------------- +Compile DPDK SDK for a Target Environment +----------------------------------------- The format of a DPDK target is:
@@ -96,31 +96,31 @@ Also, verify the compiler's installation directory since the path may be differe source /opt/intel/bin/iccvars.sh intel64 source /opt/intel/bin/iccvars.sh ia32 -To install and make targets, use the make install T=<target> command in the top-level DPDK directory. +To install and make targets, use the make sdk T=<target> command in the top-level DPDK directory. For example, to compile a 64-bit target using icc, run: .. code-block:: console - make install T=x86_64-native-linuxapp-icc + make sdk T=x86_64-native-linuxapp-icc To compile a 32-bit build using gcc, the make command should be: .. code-block:: console - make install T=i686-native-linuxapp-gcc + make sdk T=i686-native-linuxapp-gcc To compile all 64-bit targets using gcc, use: .. code-block:: console - make install T=x86_64*gcc + make sdk T=x86_64*gcc To compile all 64-bit targets using both gcc and icc, use: .. code-block:: console - make install T=x86_64-* + make sdk T=x86_64-* .. note::
@@ -152,8 +152,8 @@ The user may also make modifications to the compile-time DPDK configuration by e In addition, the make clean command can be used to remove any existing compiled files for a subsequent full, clean rebuild of the code. -Browsing the Installed DPDK Environment Target ----------------------------------------------- +Browsing the Compiled DPDK SDK +------------------------------ Once a target is created it contains all libraries, including poll-mode drivers, and header files for the DPDK environment that are required to build customer applications. In addition, the test and testpmd applications are built under the build/app directory, which may be used for testing.
doc/guides/nics/intel_vf.rst +1 -1
@@ -512,7 +512,7 @@ The setup procedure is as follows: .. code-block:: console - make install T=x86_64-native-linuxapp-gcc + make sdk T=x86_64-native-linuxapp-gcc ./x86_64-native-linuxapp-gcc/app/testpmd -c f -n 4 -- -i #. Finally, access the Guest OS using vncviewer with the localhost:5900 port and check the lspci command output in the Guest OS.
doc/guides/prog_guide/dev_kit_root_make_help.rst +9 -9
@@ -102,15 +102,15 @@ The default output directory is build. make lib/librte_eal_clean O=mybuild -Install Targets ---------------- +SDK Compilation Targets +----------------------- -* Install +* sdk Build the DPDK binary. Actually, this builds each supported target in a separate directory. The name of each directory is the name of the target. - The name of the targets to install can be optionally specified using T=mytarget. + The name of the targets to build can be optionally specified using T=mytarget. The target name can contain wildcard \* characters. The list of available targets are in $(RTE_SDK)/config (remove the defconfig\_ prefix).
@@ -118,11 +118,11 @@ Install Targets .. code-block:: console - make install T=x86_64-* + make sdk T=x86_64-* -* Uninstall +* clean-sdk - Remove installed target directories. + Remove previously built target directories. Test Targets ------------
@@ -140,7 +140,7 @@ Test Targets * testall - Launch automatic tests for all installed target directories (after a make install). + Launch automatic tests for all installed target directories (after a make sdk). The name of the targets to test can be optionally specified using T=mytarget. The target name can contain wildcard (\*) characters. The list of available targets are in $(RTE_SDK)/config (remove the defconfig\_ prefix).
@@ -265,4 +265,4 @@ For example: .. code-block:: console - make install T=x86_64-native-linuxapp-gcc make -C examples/<theapp> + make sdk T=x86_64-native-linuxapp-gcc make -C examples/<theapp>
doc/guides/rel_notes/deprecation.rst +4 -0
@@ -8,6 +8,10 @@ API and ABI deprecation notices are to be posted here. Deprecation Notices ------------------- +* The commands "make install" and "make uninstall" used to build, and clean up + the DPDK SDK have been renamed in this release to "make sdk" and "make + sdk-clean" respectively. + * The following fields have been deprecated in rte_eth_stats: ibadcrc, ibadlen, imcasts, fdirmatch, fdirmiss, tx_pause_xon, rx_pause_xon, tx_pause_xoff, rx_pause_xoff
doc/guides/rel_notes/release_2_2.rst +7 -0
@@ -196,6 +196,13 @@ Known Issues ------------ +Build Changes +------------- + +* The commands "make install" and "make uninstall" to build and subsequently + clean-up the DPDK SDK have been renamed to "make sdk" and "make sdk-clean" in + this release. + API Changes -----------
doc/guides/sample_app_ug/tep_termination.rst +1 -2
@@ -162,8 +162,7 @@ Compiling the Sample Code .. code-block:: console cd ${RTE_SDK} - make config ${RTE_TARGET} - make install ${RTE_TARGET} + make sdk ${RTE_TARGET} cd ${RTE_SDK}/examples/tep_termination make
doc/guides/sample_app_ug/vhost.rst +1 -2
@@ -334,8 +334,7 @@ Compiling the Sample Code .. code-block:: console cd ${RTE_SDK} - make config ${RTE_TARGET} - make install ${RTE_TARGET} + make sdk ${RTE_TARGET} cd ${RTE_SDK}/examples/vhost make
doc/guides/testpmd_app_ug/build_app.rst +1 -1
@@ -52,7 +52,7 @@ The basic compilation steps are: .. code-block:: console - make install T=$RTE_TARGET + make sdk T=$RTE_TARGET The compiled application will be located at:
doc/guides/xen/pkt_switch.rst +1 -1
@@ -295,7 +295,7 @@ Building and Running the Switching Backend .. code-block:: console - make install T=x86_64-native-linuxapp-gcc + make sdk T=x86_64-native-linuxapp-gcc #. Ensure that RTE_SDK and RTE_TARGET are correctly set. Build the switching example:
mk/rte.sdk.mk new file +88 -0
88 lines not on this page · raw message
mk/rte.sdkinstall.mk deleted +0 -87
87 lines not on this page · raw message
mk/rte.sdkroot.mk +11 -2
@@ -98,8 +98,17 @@ testall: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdktestall.mk $@ .PHONY: install uninstall -install uninstall: - $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkinstall.mk $@ +#install uninstall: +# $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkinstall.mk $@ +install: + $(Q)echo "'make install' is deprecated. Use 'make sdk' instead" + +uninstall: + $(Q)echo "'make uninstall' is deprecated. Use 'make clean-sdk' instead" + +.PHONY: sdk clean-sdk +sdk clean-sdk: + $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdk.mk $@ .PHONY: doc help doc: doc-all
scripts/gen-build-mk.sh +1 -1
@@ -46,7 +46,7 @@ echo "endif" echo echo "MAKEFLAGS += --no-print-directory" echo -echo "all:" +echo "all sdk:" echo " @\$(MAKE) -C $1 O=$2" echo echo "%::"
tools/setup.sh +3 -3
@@ -80,7 +80,7 @@ setup_icc() } # -# Sets RTE_TARGET and does a "make install". +# Sets RTE_TARGET and does a "make sdk". # setup_target() {
@@ -97,7 +97,7 @@ setup_target() fi fi if [ "$QUIT" == "0" ] ; then - make install T=${RTE_TARGET} + make sdk T=${RTE_TARGET} fi echo "------------------------------------------------------------------------------" echo " RTE_TARGET exported as $RTE_TARGET"
@@ -109,7 +109,7 @@ setup_target() # uninstall_targets() { - make uninstall + make clean-sdk } #
Signature · 1 line
2.5.0
So, any thoughts or comments on this? There has been lots of discussion in this general area but nothing yet going into the release to try and improve the situation.
Are we just going to kick the problem down the road to the 2.3 release?
/Bruce
Quoted 49 lines · Bruce Richardson
There has been some discussion on the list about various ways to get DPDK more standardised in how it compiles and how it can be installed into a system as a set of binaries.
One of the issues we face in that is that the 'make install' command is used in DPDK to compile a copy of the SDK but not to place the resultant binaries in the filesystem like other packages do. In order to allow us to have the option to use 'make install' in its common meaning in a future release we need to replace it in our packages, and allow some time for the change to a new command to bed-in.
This patchset therefore proposed to change "make install" to "make sdk" [and "make uninstall" to "make clean-sdk"]. Using the old commands now prints out an error message informing the user to use the new versions.
These new commands are ones that made sense to me - I'm happy enough to change them for something else people feel is more appropriate. The key point here is to move away from using "make install".
I would ask that if general agreement on this can be reached that such a change be considered for 2.2, even though it is late in the day, as "freeing up" the make install command will potentially take multiple releases as not everyone is on the latest version, and so waiting till 2.3 to make a change will push out any future re-use of a "make install" command by 4 months.
Regards,
/BruceBruce Richardson (1):
mk: rename 'make install' to 'make sdk'doc/guides/freebsd_gsg/build_dpdk.rst | 16 ++--- doc/guides/linux_gsg/build_dpdk.rst | 22 +++--- doc/guides/nics/intel_vf.rst | 2 +- doc/guides/prog_guide/dev_kit_root_make_help.rst | 18 ++--- doc/guides/sample_app_ug/tep_termination.rst | 3 +- doc/guides/sample_app_ug/vhost.rst | 3 +- doc/guides/testpmd_app_ug/build_app.rst | 2 +- doc/guides/xen/pkt_switch.rst | 2 +- mk/rte.sdk.mk | 88 ++++++++++++++++++++++++ mk/rte.sdkinstall.mk | 87 ----------------------- mk/rte.sdkroot.mk | 13 +++- scripts/gen-build-mk.sh | 2 +- 12 files changed, 133 insertions(+), 125 deletions(-) create mode 100644 mk/rte.sdk.mk delete mode 100644 mk/rte.sdkinstall.mkSignature · 1 line
2.5.0
2015-11-06 12:57, Bruce Richardson:
Quoted 4 lines
So, any thoughts or comments on this? There has been lots of discussion in this general area but nothing yet going into the release to try and improve the situation.
Are we just going to kick the problem down the road to the 2.3 release?
I plan to check these patches in the coming days for an integration in 2.2.
Quoted 8 lines · Thomas Monjalon
2015-11-06 12:57, Bruce Richardson:
Quoted 4 lines
So, any thoughts or comments on this? There has been lots of discussion in this general area but nothing yet going into the release to try and improve the situation.
Are we just going to kick the problem down the road to the 2.3 release?
I plan to check these patches in the coming days for an integration in 2.2.
Anything further on this?
Any thoughts from anyone else about this whole area of a saner build/install system for DPDK and the various patches floating around.
/Bruce
Quoted 5 lines · Bruce Richardson
Quoted 4 lines · Thomas Monjalon
2015-11-06 12:57, Bruce Richardson:
Quoted 3 lines
So, any thoughts or comments on this? There has been lots of discussion in this general area but nothing yet going into the release to try and improve the situation.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Are we just going to kick the problem down the road to the 2.3 release?
I plan to check these patches in the coming days for an integration in 2.2.
Anything further on this?
Any thoughts from anyone else about this whole area of a saner build/install system for DPDK and the various patches floating around.
Well, it seems we wont have a sane "make install" in 2.2 yet, but this is at least a step in the right direction so +1 from me.
- Panu -
2015-11-25 10:48, Panu Matilainen:
Quoted 8 lines · Bruce Richardson
Quoted 7 lines · Thomas Monjalon
Quoted 6 lines
2015-11-06 12:57, Bruce Richardson:
Quoted 4 lines
So, any thoughts or comments on this? There has been lots of discussion in this general area but nothing yet going into the release to try and improve the situation.
Are we just going to kick the problem down the road to the 2.3 release?
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
I plan to check these patches in the coming days for an integration in 2.2.
Anything further on this?
Any thoughts from anyone else about this whole area of a saner build/install system for DPDK and the various patches floating around.Well, it seems we wont have a sane "make install" in 2.2 yet, but this is at least a step in the right direction so +1 from me.
Why is it a step in the right direction?
We just need to install the files in a different hierarchy and adapt the makefiles to be able to compile an application while keeping the RTE_SDK variable to specify the root directory (previously built thanks to DESTDIR).
As the hierarchy could be tuned, we need more variables, e.g.:
DPDK_INC_DIR (default = RTE_SDK/include/dpdk) DPDK_LIB_DIR (default = RTE_SDK/lib)
While doing it, we can have a specific handling of T= to keep compatibility with the current (old) syntax.
What have I missed?
Quoted 41 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Friday, November 27, 2015 5:33 PM
To: Panu Matilainen <[email protected]>; Richardson, Bruce <[email protected]>
Cc: [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] reserve 'make install' for future use2015-11-25 10:48, Panu Matilainen:
Quoted 5 lines · Bruce Richardson
Quoted 4 lines · Thomas Monjalon
Quoted 3 lines
2015-11-06 12:57, Bruce Richardson:
Quoted 2 lines
So, any thoughts or comments on this? There has been lots of discussion in this general area but nothing yet going into the
release to try and improve the situation.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Are we just going to kick the problem down the road to the 2.3
release?
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
I plan to check these patches in the coming days for an integration
in 2.2.
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Anything further on this?
Any thoughts from anyone else about this whole area of a saner build/install system for DPDK and the various patches floating around.Well, it seems we wont have a sane "make install" in 2.2 yet, but this is at least a step in the right direction so +1 from me.
Why is it a step in the right direction?
We just need to install the files in a different hierarchy and adapt the makefiles to be able to compile an application while keeping the
RTE_SDKvariable to specify the root directory (previously built thanks to DESTDIR).
As the hierarchy could be tuned, we need more variables, e.g.:
DPDK_INC_DIR(default = RTE_SDK/include/dpdk)DPDK_LIB_DIR(default = RTE_SDK/lib)
Quoted 5 lines
While doing it, we can have a specific handling of T= to keep compatibility with the current (old) syntax.
What have I missed?
I'm not sure our existing "make install" is suitable for use for this, without having it heavily overloaded. The existing T= behavior has support for wildcards and compiling multiple instances at the same time - something that won't work with a scheme to actually install DPDK throughout the filesystem hierarchy. Having it sometimes behave as now, and sometimes behave as a standard make install is a bad idea IMHO, as it confuses things. Having lots of extra environment variables is also not a great idea, to my mind.
My opinion is that we should rename our existing "make install" to something more suitable - my patch suggestion was "make sdk" but it could be "make target" or something else if people prefer. Once that is done, we can then look to implement a proper "make install" command that works in a standard way, perhaps alongside a configure script of some description.
For an easy enough solution, I would look to apply this patch to create "make sdk" and also http://dpdk.org/dev/patchwork/patch/8076/ to have a "make install" command that works in the build dir. That way:
* you can have existing behavior using "make sdk T=<target>"
* you can have standard(ish) configure/make/make install behavior using:
make config T=<target>
cd build
make
make install
and the "make config" step can subsequently be wrapped in a configure script to eliminate the need to know what the best target to use is, etc.
/Bruce
2015-11-30 11:08, Richardson, Bruce:
Quoted 11 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 10 lines
Why is it a step in the right direction?
We just need to install the files in a different hierarchy and adapt the makefiles to be able to compile an application while keeping the
RTE_SDKvariable to specify the root directory (previously built thanks to DESTDIR).
As the hierarchy could be tuned, we need more variables, e.g.:
DPDK_INC_DIR(default = RTE_SDK/include/dpdk)DPDK_LIB_DIR(default = RTE_SDK/lib)
Quoted 8 lines
Quoted 5 lines
While doing it, we can have a specific handling of T= to keep compatibility with the current (old) syntax.
What have I missed?
I'm not sure our existing "make install" is suitable for use for this, without having it heavily overloaded. The existing T= behavior has support for wildcards and compiling multiple instances at the same time - something that won't work with a scheme to actually install DPDK throughout the filesystem hierarchy. Having it sometimes behave as now, and sometimes behave as a standard make install is a bad idea IMHO, as it confuses things. Having lots of extra environment variables is also not a great idea, to my mind.
Yes I agree.
I forgot to mention it, but in my idea, we can drop the support for multiple targets. So the T= compatibility would be only a shortcut to do "make config" and name the build directory based on the template name.
About the environment variables:
An application requires CFLAGS and LDFLAGS (at least). The standard way to provide them is pkgconfig (not implemented yet).
For applications using the DPDK makefiles, the only input is RTE_SDK. When allowing more tuning in paths, we need more variables when using the DPDK makefiles to build an application.
Quoted 1 line
My opinion is that we should rename our existing "make install" to something more suitable - my patch suggestion was "make sdk" but it could be "make target" or something else if people prefer. Once that is done, we can then look to implement a proper "make install" command that works in a standard way, perhaps alongside a configure script of some description.
I think we don't need to rename or move some code. Just drop and replace some of them.
The configure script is a great idea but it is a totally different idea. I do not think that installation and configuration should be related. Please let's consider "make install" first.
Quoted 8 lines
For an easy enough solution, I would look to apply this patch to create "make sdk" and also http://dpdk.org/dev/patchwork/patch/8076/ to have a "make install" command that works in the build dir. That way:
* you can have existing behavior using "make sdk T=<target>"
* you can have standard(ish) configure/make/make install behavior using:
make config T=<target>
cd build
make
make install
and the "make config" step can subsequently be wrapped in a configure script to eliminate the need to know what the best target to use is, etc.
As Panu commented, I do not think it is a good idea to have different behaviours inside and outside of the build directory.
I would even say that this embedded makefile is only confusing and should be dropped.
We need to have *one* right building methods, not to bring more confusion.
Quoted 73 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Monday, November 30, 2015 11:27 AM
To: Richardson, Bruce <[email protected]>
Cc: Panu Matilainen <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] reserve 'make install' for future use2015-11-30 11:08, Richardson, Bruce:
Quoted 11 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 10 lines
Why is it a step in the right direction?
We just need to install the files in a different hierarchy and adapt the makefiles to be able to compile an application while keeping the
RTE_SDKvariable to specify the root directory (previously built thanks to DESTDIR).
As the hierarchy could be tuned, we need more variables, e.g.:
DPDK_INC_DIR(default = RTE_SDK/include/dpdk)DPDK_LIB_DIR(default = RTE_SDK/lib)Quoted 8 lines
Quoted 5 lines
While doing it, we can have a specific handling of T= to keep compatibility with the current (old) syntax.
What have I missed?
I'm not sure our existing "make install" is suitable for use for this,
without having it heavily overloaded. The existing T= behavior has support for wildcards and compiling multiple instances at the same time - something that won't work with a scheme to actually install DPDK throughout the filesystem hierarchy. Having it sometimes behave as now, and sometimes behave as a standard make install is a bad idea IMHO, as it confuses things. Having lots of extra environment variables is also not a great idea, to my mind.
Yes I agree.
I forgot to mention it, but in my idea, we can drop the support for multiple targets. So the T= compatibility would be only a shortcut to do "make config" and name the build directory based on the template name.About the environment variables:
An application requires CFLAGS and LDFLAGS (at least). The standard way to provide them is pkgconfig (not implemented yet).
For applications using the DPDK makefiles, the only input isRTE_SDK. When allowing more tuning in paths, we need more variables when using the DPDK makefiles to build an application.Quoted 1 line
My opinion is that we should rename our existing "make install" to
something more suitable - my patch suggestion was "make sdk" but it could be "make target" or something else if people prefer. Once that is done, we can then look to implement a proper "make install" command that works in a standard way, perhaps alongside a configure script of some description.
I think we don't need to rename or move some code. Just drop and replace some of them.
The configure script is a great idea but it is a totally different idea. I do not think that installation and configuration should be related. Please let's consider "make install" first.
Quoted 1 line
For an easy enough solution, I would look to apply this patch to create
"make sdk" and also http://dpdk.org/dev/patchwork/patch/8076/ to have a "make install" command that works in the build dir. That way:
Quoted 7 lines
* you can have existing behavior using "make sdk T=<target>"
* you can have standard(ish) configure/make/make install behavior using:
make config T=<target>
cd build
make
make install
and the "make config" step can subsequently be wrapped in a configure
Quoted 7 lines
script to eliminate the need to know what the best target to use is, etc.
As Panu commented, I do not think it is a good idea to have different behaviours inside and outside of the build directory.
I would even say that this embedded makefile is only confusing and should be dropped.
We need to have *one* right building methods, not to bring more confusion.
I disagree. I don't think we can have *one* right building method, because to do so means completely throwing away our existing methods of building DPDK and using sample applications. That general method, using RTE_SDK and RTE_TARGET needs to be supported for some time for those projects already familiar with it and using it.
As well as this, we also need a sane way of building DPDK inside the "build" directory, and having a "make install" target that installs the libraries and headers inside /usr/local (or whatever was specified as $prefix).
With regards to different behavior, since different targets are provided, I don't see it as a problem. In the root directory, "make config" and "make sdk" are provided for backward compatibility. Inside the build directory you have your standard "make" and "make install" commands. Since the command set is very limited, it's easy enough to print a suitable error when the wrong command is used in the wrong place.
Yes, I would like the ideal state where we have one set of build commands that are run from just one location. However, I don't think we can get to that objective without going through a transition phase where we support both old and new options.
/Bruce
Quoted 90 lines · Bruce
Quoted 73 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Monday, November 30, 2015 11:27 AM
To: Richardson, Bruce <[email protected]>
Cc: Panu Matilainen <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] reserve 'make install' for future use2015-11-30 11:08, Richardson, Bruce:
Quoted 11 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 10 lines
Why is it a step in the right direction?
We just need to install the files in a different hierarchy and adapt the makefiles to be able to compile an application while keeping the
RTE_SDKvariable to specify the root directory (previously built thanks to DESTDIR).
As the hierarchy could be tuned, we need more variables, e.g.:
DPDK_INC_DIR(default = RTE_SDK/include/dpdk)DPDK_LIB_DIR(default = RTE_SDK/lib)Quoted 8 lines
Quoted 5 lines
While doing it, we can have a specific handling of T= to keep compatibility with the current (old) syntax.
What have I missed?
I'm not sure our existing "make install" is suitable for use for this,
without having it heavily overloaded. The existing T= behavior has support for wildcards and compiling multiple instances at the same time - something that won't work with a scheme to actually install DPDK throughout the filesystem hierarchy. Having it sometimes behave as now, and sometimes behave as a standard make install is a bad idea IMHO, as it confuses things. Having lots of extra environment variables is also not a great idea, to my mind.
Yes I agree.
I forgot to mention it, but in my idea, we can drop the support for multiple targets. So the T= compatibility would be only a shortcut to do "make config" and name the build directory based on the template name.About the environment variables:
An application requires CFLAGS and LDFLAGS (at least). The standard way to provide them is pkgconfig (not implemented yet).
For applications using the DPDK makefiles, the only input isRTE_SDK. When allowing more tuning in paths, we need more variables when using the DPDK makefiles to build an application.Quoted 1 line
My opinion is that we should rename our existing "make install" to
something more suitable - my patch suggestion was "make sdk" but it could be "make target" or something else if people prefer. Once that is done, we can then look to implement a proper "make install" command that works in a standard way, perhaps alongside a configure script of some description.
I think we don't need to rename or move some code. Just drop and replace some of them.
The configure script is a great idea but it is a totally different idea. I do not think that installation and configuration should be related. Please let's consider "make install" first.
Quoted 1 line
For an easy enough solution, I would look to apply this patch to create
"make sdk" and also http://dpdk.org/dev/patchwork/patch/8076/ to have a "make install" command that works in the build dir. That way:
Quoted 7 lines
* you can have existing behavior using "make sdk T=<target>"
* you can have standard(ish) configure/make/make install behavior using:
make config T=<target>
cd build
make
make install
and the "make config" step can subsequently be wrapped in a configureQuoted 7 lines
script to eliminate the need to know what the best target to use is, etc.
As Panu commented, I do not think it is a good idea to have different behaviours inside and outside of the build directory.
I would even say that this embedded makefile is only confusing and should be dropped.
We need to have *one* right building methods, not to bring more confusion.I disagree. I don't think we can have *one* right building method, because to do so means completely throwing away our existing methods of building DPDK and using sample applications. That general method, using
RTE_SDKandRTE_TARGETneeds to be supported for some time for those projects already familiar with it and using it.
As well as this, we also need a sane way of building DPDK inside the "build" directory, and having a "make install" target that installs the libraries and headers inside/usr/local(or whatever was specified as $prefix).
Quoted 6 lines
With regards to different behavior, since different targets are provided, I don't see it as a problem. In the root directory, "make config" and "make sdk" are provided for backward compatibility. Inside the build directory you have your standard "make" and "make install" commands. Since the command set is very limited, it's easy enough to print a suitable error when the wrong command is used in the wrong place.
By way of follow-up to my own email, I'd also state that I would indeed prefer not to have different targets in different places, and that ideally you would do configure/make/make-install from the root directory. The reason I suggested having "make install" work inside the build directory is because of our existing use of "make install" for something different in the root directory. This is also the reason I sent out this patch. By renaming the "make install" command in 2.2, we give ourselves the option in future releases of adding in a new "make install" command that behaves as we want, without having to worry about conflict with a legacy make install.
That is why I feel this one patch should go in - it opens up more options for us in future releases. It's not an end in itself. :-)
/Bruce
Quoted 7 lines
Yes, I would like the ideal state where we have one set of build commands that are run from just one location. However, I don't think we can get to that objective without going through a transition phase where we support both old and new options.
/Bruce
Quoted 11 lines · Thomas Monjalon
2015-11-25 10:48, Panu Matilainen:
Quoted 10 lines · Bruce Richardson
Quoted 9 lines · Thomas Monjalon
Quoted 8 lines
2015-11-06 12:57, Bruce Richardson:
Quoted 4 lines
So, any thoughts or comments on this? There has been lots of discussion in this general area but nothing yet going into the release to try and improve the situation.
Are we just going to kick the problem down the road to the 2.3 release?
I plan to check these patches in the coming days for an integration in 2.2.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Anything further on this?
Any thoughts from anyone else about this whole area of a saner build/install system for DPDK and the various patches floating around.Well, it seems we wont have a sane "make install" in 2.2 yet, but this is at least a step in the right direction so +1 from me.
Why is it a step in the right direction?
Right direction as in, everybody seems to agree we want "make install" ultimately do the right thing. If we can't have it in 2.2 yet then a preparatory step is better than not having it.
Quoted 8 lines
We just need to install the files in a different hierarchy and adapt the makefiles to be able to compile an application while keeping the
RTE_SDKvariable to specify the root directory (previously built thanks to DESTDIR).
As the hierarchy could be tuned, we need more variables, e.g.:
DPDK_INC_DIR(default = RTE_SDK/include/dpdk)DPDK_LIB_DIR(default = RTE_SDK/lib)
Quoted 4 lines
While doing it, we can have a specific handling of T= to keep compatibility with the current (old) syntax.
What have I missed?
Perhaps its me who has missed the fact that 2.2 is still open for these kind of things.
If it were up to me, I think I'd just apply Marios latest patch series (perhaps condence it somewhat) to get it over with, fine-tune later if/as necessary. This is veering to the side of bikeshedding real fast.
BTW, one noteworthy point is that in all of these related threads, nobody absolutely nobody has spoken up for the current behavior of "make install". Which makes me wonder if anybody is actually using it, and whether all this is just worrying for nothing.
- Panu -
2015-11-30 14:26, Panu Matilainen:
Quoted 16 lines · Thomas Monjalon
Quoted 15 lines
2015-11-25 10:48, Panu Matilainen:
Quoted 14 lines · Bruce Richardson
Quoted 12 lines · Thomas Monjalon
Quoted 8 lines
2015-11-06 12:57, Bruce Richardson:
Quoted 4 lines
So, any thoughts or comments on this? There has been lots of discussion in this general area but nothing yet going into the release to try and improve the situation.
Are we just going to kick the problem down the road to the 2.3 release?
I plan to check these patches in the coming days for an integration in 2.2.
Anything further on this?
Any thoughts from anyone else about this whole area of a saner build/install system for DPDK and the various patches floating around.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Well, it seems we wont have a sane "make install" in 2.2 yet, but this is at least a step in the right direction so +1 from me.
Why is it a step in the right direction?
Right direction as in, everybody seems to agree we want "make install" ultimately do the right thing. If we can't have it in 2.2 yet then a preparatory step is better than not having it.
Yes sure.
We will have something in 2.2. The question is what :)
Quoted 4 lines
Quoted 1 line
What have I missed?
Perhaps its me who has missed the fact that 2.2 is still open for these kind of things.
Yes we still have more than one week before closing the release. We can try some changes in the build system.
Quoted 8 lines
If it were up to me, I think I'd just apply Marios latest patch series (perhaps condence it somewhat) to get it over with, fine-tune later if/as necessary. This is veering to the side of bikeshedding real fast.
BTW, one noteworthy point is that in all of these related threads, nobody absolutely nobody has spoken up for the current behavior of "make install". Which makes me wonder if anybody is actually using it, and whether all this is just worrying for nothing.
Yes we can break some old behaviours. The T= option should be easy to simulate in a single target case.
2015-11-30 11:49, Bruce Richardson:
Quoted 77 lines · Bruce
Quoted 76 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 74 lines
Sent: Monday, November 30, 2015 11:27 AM
To: Richardson, Bruce <[email protected]>
Cc: Panu Matilainen <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] reserve 'make install' for future use2015-11-30 11:08, Richardson, Bruce:
Quoted 11 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 10 lines
Why is it a step in the right direction?
We just need to install the files in a different hierarchy and adapt the makefiles to be able to compile an application while keeping the
RTE_SDKvariable to specify the root directory (previously built thanks to DESTDIR).
As the hierarchy could be tuned, we need more variables, e.g.:
DPDK_INC_DIR(default = RTE_SDK/include/dpdk)DPDK_LIB_DIR(default = RTE_SDK/lib)Quoted 6 lines
Quoted 4 lines
While doing it, we can have a specific handling of T= to keep compatibility with the current (old) syntax.
What have I missed?
I'm not sure our existing "make install" is suitable for use for this,
without having it heavily overloaded. The existing T= behavior has support for wildcards and compiling multiple instances at the same time - something that won't work with a scheme to actually install DPDK throughout the filesystem hierarchy. Having it sometimes behave as now, and sometimes behave as a standard make install is a bad idea IMHO, as it confuses things. Having lots of extra environment variables is also not a great idea, to my mind.
Yes I agree.
I forgot to mention it, but in my idea, we can drop the support for multiple targets. So the T= compatibility would be only a shortcut to do "make config" and name the build directory based on the template name.About the environment variables:
An application requires CFLAGS and LDFLAGS (at least). The standard way to provide them is pkgconfig (not implemented yet).
For applications using the DPDK makefiles, the only input isRTE_SDK. When allowing more tuning in paths, we need more variables when using the DPDK makefiles to build an application.Quoted 1 line
My opinion is that we should rename our existing "make install" to
something more suitable - my patch suggestion was "make sdk" but it could be "make target" or something else if people prefer. Once that is done, we can then look to implement a proper "make install" command that works in a standard way, perhaps alongside a configure script of some description.
I think we don't need to rename or move some code. Just drop and replace some of them.
The configure script is a great idea but it is a totally different idea. I do not think that installation and configuration should be related. Please let's consider "make install" first.
Quoted 1 line
For an easy enough solution, I would look to apply this patch to create
"make sdk" and also http://dpdk.org/dev/patchwork/patch/8076/ to have a "make install" command that works in the build dir. That way:
Quoted 7 lines
* you can have existing behavior using "make sdk T=<target>"
* you can have standard(ish) configure/make/make install behavior using:
make config T=<target>
cd build
make
make install
and the "make config" step can subsequently be wrapped in a configurescript to eliminate the need to know what the best target to use is, etc.
As Panu commented, I do not think it is a good idea to have different behaviours inside and outside of the build directory.
I would even say that this embedded makefile is only confusing and should be dropped.
We need to have *one* right building methods, not to bring more confusion.
Quoted 5 lines
Quoted 5 lines
I disagree. I don't think we can have *one* right building method, because to do so means completely throwing away our existing methods of building DPDK and using sample applications. That general method, using
RTE_SDKandRTE_TARGETneeds to be supported for some time for those projects already familiar with it and using it.
We can keep it for some time while allowing other tree hierarchies.
Quoted 21 lines
Quoted 10 lines
As well as this, we also need a sane way of building DPDK inside the "build" directory, and having a "make install" target that installs the libraries and headers inside
/usr/local(or whatever was specified as $prefix).With regards to different behavior, since different targets are provided, I don't see it as a problem. In the root directory, "make config" and "make sdk" are provided for backward compatibility. Inside the build directory you have your standard "make" and "make install" commands. Since the command set is very limited, it's easy enough to print a suitable error when the wrong command is used in the wrong place.
By way of follow-up to my own email, I'd also state that I would indeed prefer not to have different targets in different places, and that ideally you would do configure/make/make-install from the root directory. The reason I suggested having "make install" work inside the build directory is because of our existing use of "make install" for something different in the root directory. This is also the reason I sent out this patch. By renaming the "make install" command in 2.2, we give ourselves the option in future releases of adding in a new "make install" command that behaves as we want, without having to worry about conflict with a legacy make install.
Quoted 2 lines
That is why I feel this one patch should go in - it opens up more options for us in future releases. It's not an end in itself. :-)
If we do not agree on something else (I'll try to submit some patches), yes your patch to introduce "make sdk" will be integrated.
But I'd prefer avoiding to document a new command which will be deprecated when the new-new "make install" will be implemented.
I think there is another solution (I may be wrong).
Quoted 5 lines
Quoted 5 lines
Yes, I would like the ideal state where we have one set of build commands that are run from just one location. However, I don't think we can get to that objective without going through a transition phase where we support both old and new options.
/Bruce
2015-11-30 15:26, Thomas Monjalon:
Quoted 107 lines
2015-11-30 11:49, Bruce Richardson:
Quoted 77 lines · Bruce
Quoted 76 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 74 lines
Sent: Monday, November 30, 2015 11:27 AM
To: Richardson, Bruce <[email protected]>
Cc: Panu Matilainen <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] reserve 'make install' for future use2015-11-30 11:08, Richardson, Bruce:
Quoted 11 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 10 lines
Why is it a step in the right direction?
We just need to install the files in a different hierarchy and adapt the makefiles to be able to compile an application while keeping the
RTE_SDKvariable to specify the root directory (previously built thanks to DESTDIR).
As the hierarchy could be tuned, we need more variables, e.g.:
DPDK_INC_DIR(default = RTE_SDK/include/dpdk)DPDK_LIB_DIR(default = RTE_SDK/lib)Quoted 6 lines
Quoted 4 lines
While doing it, we can have a specific handling of T= to keep compatibility with the current (old) syntax.
What have I missed?
I'm not sure our existing "make install" is suitable for use for this,
without having it heavily overloaded. The existing T= behavior has support for wildcards and compiling multiple instances at the same time - something that won't work with a scheme to actually install DPDK throughout the filesystem hierarchy. Having it sometimes behave as now, and sometimes behave as a standard make install is a bad idea IMHO, as it confuses things. Having lots of extra environment variables is also not a great idea, to my mind.
Yes I agree.
I forgot to mention it, but in my idea, we can drop the support for multiple targets. So the T= compatibility would be only a shortcut to do "make config" and name the build directory based on the template name.About the environment variables:
An application requires CFLAGS and LDFLAGS (at least). The standard way to provide them is pkgconfig (not implemented yet).
For applications using the DPDK makefiles, the only input isRTE_SDK. When allowing more tuning in paths, we need more variables when using the DPDK makefiles to build an application.Quoted 1 line
My opinion is that we should rename our existing "make install" to
something more suitable - my patch suggestion was "make sdk" but it could be "make target" or something else if people prefer. Once that is done, we can then look to implement a proper "make install" command that works in a standard way, perhaps alongside a configure script of some description.
I think we don't need to rename or move some code. Just drop and replace some of them.
The configure script is a great idea but it is a totally different idea. I do not think that installation and configuration should be related. Please let's consider "make install" first.
Quoted 1 line
For an easy enough solution, I would look to apply this patch to create
"make sdk" and also http://dpdk.org/dev/patchwork/patch/8076/ to have a "make install" command that works in the build dir. That way:
Quoted 7 lines
* you can have existing behavior using "make sdk T=<target>"
* you can have standard(ish) configure/make/make install behavior using:
make config T=<target>
cd build
make
make install
and the "make config" step can subsequently be wrapped in a configurescript to eliminate the need to know what the best target to use is, etc.
As Panu commented, I do not think it is a good idea to have different behaviours inside and outside of the build directory.
I would even say that this embedded makefile is only confusing and should be dropped.
We need to have *one* right building methods, not to bring more confusion.Quoted 5 lines
Quoted 5 lines
I disagree. I don't think we can have *one* right building method, because to do so means completely throwing away our existing methods of building DPDK and using sample applications. That general method, using
RTE_SDKandRTE_TARGETneeds to be supported for some time for those projects already familiar with it and using it.We can keep it for some time while allowing other tree hierarchies.
Quoted 21 lines
Quoted 10 lines
As well as this, we also need a sane way of building DPDK inside the "build" directory, and having a "make install" target that installs the libraries and headers inside
/usr/local(or whatever was specified as $prefix).With regards to different behavior, since different targets are provided, I don't see it as a problem. In the root directory, "make config" and "make sdk" are provided for backward compatibility. Inside the build directory you have your standard "make" and "make install" commands. Since the command set is very limited, it's easy enough to print a suitable error when the wrong command is used in the wrong place.
By way of follow-up to my own email, I'd also state that I would indeed prefer not to have different targets in different places, and that ideally you would do configure/make/make-install from the root directory. The reason I suggested having "make install" work inside the build directory is because of our existing use of "make install" for something different in the root directory. This is also the reason I sent out this patch. By renaming the "make install" command in 2.2, we give ourselves the option in future releases of adding in a new "make install" command that behaves as we want, without having to worry about conflict with a legacy make install.
Quoted 14 lines
Quoted 2 lines
That is why I feel this one patch should go in - it opens up more options for us in future releases. It's not an end in itself. :-)
If we do not agree on something else (I'll try to submit some patches), yes your patch to introduce "make sdk" will be integrated.
But I'd prefer avoiding to document a new command which will be deprecated when the new-new "make install" will be implemented.
I think there is another solution (I may be wrong).Quoted 5 lines
Quoted 5 lines
Yes, I would like the ideal state where we have one set of build commands that are run from just one location. However, I don't think we can get to that objective without going through a transition phase where we support both old and new options.
/Bruce
The patch series for standard make install
(http://dpdk.org/ml/archives/dev/2015-December/029416.html)
demonstrates that it is possible to have a standard make install while keeping the old behaviour.
So this patch is marked as rejected in patchwork.
To avoid confusion, the name of the old "make install T=" could be renamed in a later release when the new install will be well known.
Quoted 155 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Friday, December 4, 2015 3:57 PM
To: Richardson, Bruce <[email protected]>
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] reserve 'make install' for future use2015-11-30 15:26, Thomas Monjalon:
Quoted 36 lines
2015-11-30 11:49, Bruce Richardson:
Quoted 35 lines · Bruce
Quoted 34 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 33 lines
Sent: Monday, November 30, 2015 11:27 AM
To: Richardson, Bruce <[email protected]>
Cc: Panu Matilainen <[email protected]>; [email protected]; [email protected]
Subject: Re: [dpdk-dev] [PATCH] reserve 'make install' for future use2015-11-30 11:08, Richardson, Bruce:
Quoted 11 lines
From: Thomas Monjalon [mailto:[email protected]]
Quoted 10 lines
Why is it a step in the right direction?
We just need to install the files in a different hierarchy and adapt the makefiles to be able to compile an application while keeping the
RTE_SDKvariable to specify the root directory (previously built thanks to DESTDIR).
As the hierarchy could be tuned, we need more variables, e.g.:
DPDK_INC_DIR(default = RTE_SDK/include/dpdk)DPDK_LIB_DIR(default = RTE_SDK/lib)Quoted 7 lines
Quoted 4 lines
While doing it, we can have a specific handling of T= to keep compatibility with the current (old) syntax.
What have I missed?
I'm not sure our existing "make install" is suitable for use for this,
without having it heavily overloaded. The existing T= behavior has support for wildcards and compiling multiple instances at the same time - something that won't work with a scheme to actually install DPDK throughout the filesystem hierarchy. Having it sometimes behave as now, and sometimes behave as a standard make install is a bad idea IMHO, as it confuses things. Having lots of extra environment variables is also not a great
idea, to my mind.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Yes I agree.
I forgot to mention it, but in my idea, we can drop the support for multiple targets. So the T= compatibility would be only a shortcut to do "make config" and name the build directory based onthe template name.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
About the environment variables:
An application requires CFLAGS and LDFLAGS (at least). The standard way to provide them is pkgconfig (not implemented yet). For applications using the DPDK makefiles, the only input is
RTE_SDK.Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
When allowing more tuning in paths, we need more variables when using the DPDK makefiles to build an application.
Quoted 2 lines
My opinion is that we should rename our existing "make install" to
something more suitable - my patch suggestion was "make sdk" but it could be "make target" or something else if people prefer. Once that is done, we can then look to implement a proper "make install" command that works in a standard way, perhaps alongside a
configure script of some description.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
I think we don't need to rename or move some code. Just drop and replace some of them.
The configure script is a great idea but it is a totally different
idea.
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
I do not think that installation and configuration should be
related.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Please let's consider "make install" first.
Quoted 2 lines
For an easy enough solution, I would look to apply this patch to create
"make sdk" and also http://dpdk.org/dev/patchwork/patch/8076/ to have a "make install" command that works in the build dir. That
way:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
* you can have existing behavior using "make sdk T=<target>"
* you can have standard(ish) configure/make/make installbehavior using:
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
make config T=<target>
cd build
make
make install
and the "make config" step can subsequently be wrapped in a
configurescript to eliminate the need to know what the best target to use
is, etc.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
As Panu commented, I do not think it is a good idea to have different behaviours inside and outside of the build directory. I would even say that this embedded makefile is only confusing and should be dropped.
We need to have *one* right building methods, not to bring moreconfusion.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I disagree. I don't think we can have *one* right building method, because to do so means completely throwing away our existing methods of building DPDK and using sample applications. That general method, using
RTE_SDKandRTE_TARGETneeds to be supported for some time for those projects already familiar with it and usingit.
Quoted 4 lines
We can keep it for some time while allowing other tree hierarchies.
Quoted 1 line
Quoted 1 line
As well as this, we also need a sane way of building DPDK inside the
"build"
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
directory, and having a "make install" target that installs the libraries and headers inside
/usr/local(or whatever was specifiedas $prefix).
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
With regards to different behavior, since different targets are provided, I don't see it as a problem. In the root directory, "make
config" and "make sdk"
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
are provided for backward compatibility. Inside the build directory you have your standard "make" and "make install" commands. Since the command set is very limited, it's easy enough to print a suitable error when the wrong command is used in the
wrong place.
Quoted 6 lines
Quoted 6 lines
By way of follow-up to my own email, I'd also state that I would indeed prefer not to have different targets in different places, and that ideally you would do configure/make/make-install from the root directory. The reason I suggested having "make install" work inside the build directory is because of our existing use of "make install"
for something different in the root directory.
Quoted 1 line
Quoted 1 line
This is also the reason I sent out this patch. By renaming the "make
install"
Quoted 4 lines
Quoted 4 lines
command in 2.2, we give ourselves the option in future releases of adding in a new "make install" command that behaves as we want, without having to worry about conflict with a legacy make install.
Quoted 12 lines
Quoted 2 lines
That is why I feel this one patch should go in - it opens up more options for us in future releases. It's not an end in itself. :-)
If we do not agree on something else (I'll try to submit some patches), yes your patch to introduce "make sdk" will be integrated. But I'd prefer avoiding to document a new command which will be deprecated when the new-new "make install" will be implemented. I think there is another solution (I may be wrong).
Quoted 3 lines
Quoted 3 lines
Yes, I would like the ideal state where we have one set of build commands that are run from just one location. However, I don't think we can get to that objective without going through a
transition phase where we support both old and new options.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
/Bruce
Quoted 7 lines
The patch series for standard make install
(http://dpdk.org/ml/archives/dev/2015-December/029416.html)
demonstrates that it is possible to have a standard make install while keeping the old behaviour.
So this patch is marked as rejected in patchwork.
To avoid confusion, the name of the old "make install T=" could be renamed in a later release when the new install will be well known.
Ok, understood.
/Bruce