diff mbox

dpdk: README: simplify and build against installed dpdk

Message ID 1406232023-9523-1-git-send-email-anders.roxell@linaro.org
State New
Headers show

Commit Message

Anders Roxell July 24, 2014, 8 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 platform/linux-dpdk/README | 17 ++---------------
 1 file changed, 2 insertions(+), 15 deletions(-)

Comments

Maxim Uvarov July 24, 2014, 8:05 p.m. UTC | #1
On 07/25/2014 12:00 AM, Anders Roxell wrote:
> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
> ---
>   platform/linux-dpdk/README | 17 ++---------------
>   1 file changed, 2 insertions(+), 15 deletions(-)
>
> diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README
> index 04a49d9..88ccbf8 100644
> --- a/platform/linux-dpdk/README
> +++ b/platform/linux-dpdk/README
> @@ -21,7 +21,7 @@ $ cd <odp-dir>
>   $ sudo ./bootstrap
>   $ sudo ./configure --with-platform=linux-dpdk LDFLAGS=-L<dpdk-build-dir>/lib CFLAGS="-include <dpdk-build-dir>/include/rte_config.h -I<dpdk-build-dir>/include -I<dpdk-build-dir>/include/arch -I<dpdk-build-dir>/include/exec-env"
>   # For example
> -$ sudo ./configure --with-platform=linux-dpdk LDFLAGS=-L/root/dpdk/build/lib CFLAGS="-include /root/dpdk/build/include/rte_config.h -I/root/dpdk/build/include -I/root/dpdk/build/include/arch -I/root/dpdk/build/include/exec-env"
> +$ sudo ./configure --with-platform=linux-dpdk LDFLAGS=-L/root/dpdk/x86_64-default-linuxapp-gcc/lib CFLAGS="-include /root/dpdk/x86_64-default-linuxapp-gcc/include/rte_config.h -I/root/dpdk/x86_64-default-linuxapp-gcc/include -I/root/dpdk/x86_64-default-linuxapp-gcc/include/arch -I/root/dpdk/x86_64-default-linuxapp-gcc/include/exec-env"
>   $ sudo make clean
>   $ sudo make
why sudo is needed here?


>   
> @@ -39,20 +39,7 @@ $ cd <dpdk-dir>
>   
>   # This has to be done only once.
>   # Following command will generate build dir as ./build in <dpdk-dir>
> -$ make config T=x86_64-default-linuxapp-gcc
> -
> -# If user wants to override and give a different name for build dir,
> -# then that can be done using the following command
> -$ make config T=x86_64-default-linuxapp-gcc O=my_sdk_build_dir
> -
> -$ vi <dpdk-build-dir>/.config and set CONFIG_RTE_BUILD_COMBINE_LIBS=y
> -
> -Note: If non-intel SFP's are used in NIC, then
> -$ vi <dpdk-build-dir>/.config and
> -set CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y
> -
> -$ cd <dpdk-build-dir>
> -$ make clean; make
> +$ make install T=x86_64-default-linuxapp-gcc CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC"
>   
>   # If "conflicting types for skb_set_hash" error happens during dpdk
>   # build, then please knock-off skb_set_hash function from kcompat.h as
Mike Holmes July 24, 2014, 8:08 p.m. UTC | #2
It is not, I don't use sudo there.


On 24 July 2014 16:05, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:

> On 07/25/2014 12:00 AM, Anders Roxell wrote:
>
>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
>> ---
>>   platform/linux-dpdk/README | 17 ++---------------
>>   1 file changed, 2 insertions(+), 15 deletions(-)
>>
>> diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README
>> index 04a49d9..88ccbf8 100644
>> --- a/platform/linux-dpdk/README
>> +++ b/platform/linux-dpdk/README
>> @@ -21,7 +21,7 @@ $ cd <odp-dir>
>>   $ sudo ./bootstrap
>>   $ sudo ./configure --with-platform=linux-dpdk
>> LDFLAGS=-L<dpdk-build-dir>/lib CFLAGS="-include
>> <dpdk-build-dir>/include/rte_config.h -I<dpdk-build-dir>/include
>> -I<dpdk-build-dir>/include/arch -I<dpdk-build-dir>/include/exec-env"
>>   # For example
>> -$ sudo ./configure --with-platform=linux-dpdk
>> LDFLAGS=-L/root/dpdk/build/lib CFLAGS="-include
>> /root/dpdk/build/include/rte_config.h -I/root/dpdk/build/include
>> -I/root/dpdk/build/include/arch -I/root/dpdk/build/include/exec-env"
>> +$ sudo ./configure --with-platform=linux-dpdk
>> LDFLAGS=-L/root/dpdk/x86_64-default-linuxapp-gcc/lib CFLAGS="-include
>> /root/dpdk/x86_64-default-linuxapp-gcc/include/rte_config.h
>> -I/root/dpdk/x86_64-default-linuxapp-gcc/include
>> -I/root/dpdk/x86_64-default-linuxapp-gcc/include/arch
>> -I/root/dpdk/x86_64-default-linuxapp-gcc/include/exec-env"
>>   $ sudo make clean
>>   $ sudo make
>>
> why sudo is needed here?
>
>
>
>    @@ -39,20 +39,7 @@ $ cd <dpdk-dir>
>>     # This has to be done only once.
>>   # Following command will generate build dir as ./build in <dpdk-dir>
>> -$ make config T=x86_64-default-linuxapp-gcc
>> -
>> -# If user wants to override and give a different name for build dir,
>> -# then that can be done using the following command
>> -$ make config T=x86_64-default-linuxapp-gcc O=my_sdk_build_dir
>> -
>> -$ vi <dpdk-build-dir>/.config and set CONFIG_RTE_BUILD_COMBINE_LIBS=y
>> -
>> -Note: If non-intel SFP's are used in NIC, then
>> -$ vi <dpdk-build-dir>/.config and
>> -set CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y
>> -
>> -$ cd <dpdk-build-dir>
>> -$ make clean; make
>> +$ make install T=x86_64-default-linuxapp-gcc
>> CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC"
>>     # If "conflicting types for skb_set_hash" error happens during dpdk
>>   # build, then please knock-off skb_set_hash function from kcompat.h as
>>
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
Anders Roxell July 24, 2014, 8:10 p.m. UTC | #3
On 24 July 2014 22:08, Mike Holmes <mike.holmes@linaro.org> wrote:

> It is not, I don't use sudo there.
>

didn't follow the README I just changed it so we build against a installed
version of DPDK... =)

Agree with you!

Sending v2 soon.

Cheers,
Anders



>
>
> On 24 July 2014 16:05, Maxim Uvarov <maxim.uvarov@linaro.org> wrote:
>
>> On 07/25/2014 12:00 AM, Anders Roxell wrote:
>>
>>> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
>>> ---
>>>   platform/linux-dpdk/README | 17 ++---------------
>>>   1 file changed, 2 insertions(+), 15 deletions(-)
>>>
>>> diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README
>>> index 04a49d9..88ccbf8 100644
>>> --- a/platform/linux-dpdk/README
>>> +++ b/platform/linux-dpdk/README
>>> @@ -21,7 +21,7 @@ $ cd <odp-dir>
>>>   $ sudo ./bootstrap
>>>   $ sudo ./configure --with-platform=linux-dpdk
>>> LDFLAGS=-L<dpdk-build-dir>/lib CFLAGS="-include
>>> <dpdk-build-dir>/include/rte_config.h -I<dpdk-build-dir>/include
>>> -I<dpdk-build-dir>/include/arch -I<dpdk-build-dir>/include/exec-env"
>>>   # For example
>>> -$ sudo ./configure --with-platform=linux-dpdk
>>> LDFLAGS=-L/root/dpdk/build/lib CFLAGS="-include
>>> /root/dpdk/build/include/rte_config.h -I/root/dpdk/build/include
>>> -I/root/dpdk/build/include/arch -I/root/dpdk/build/include/exec-env"
>>> +$ sudo ./configure --with-platform=linux-dpdk
>>> LDFLAGS=-L/root/dpdk/x86_64-default-linuxapp-gcc/lib CFLAGS="-include
>>> /root/dpdk/x86_64-default-linuxapp-gcc/include/rte_config.h
>>> -I/root/dpdk/x86_64-default-linuxapp-gcc/include
>>> -I/root/dpdk/x86_64-default-linuxapp-gcc/include/arch
>>> -I/root/dpdk/x86_64-default-linuxapp-gcc/include/exec-env"
>>>   $ sudo make clean
>>>   $ sudo make
>>>
>> why sudo is needed here?
>>
>>
>>
>>    @@ -39,20 +39,7 @@ $ cd <dpdk-dir>
>>>     # This has to be done only once.
>>>   # Following command will generate build dir as ./build in <dpdk-dir>
>>> -$ make config T=x86_64-default-linuxapp-gcc
>>> -
>>> -# If user wants to override and give a different name for build dir,
>>> -# then that can be done using the following command
>>> -$ make config T=x86_64-default-linuxapp-gcc O=my_sdk_build_dir
>>> -
>>> -$ vi <dpdk-build-dir>/.config and set CONFIG_RTE_BUILD_COMBINE_LIBS=y
>>> -
>>> -Note: If non-intel SFP's are used in NIC, then
>>> -$ vi <dpdk-build-dir>/.config and
>>> -set CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y
>>> -
>>> -$ cd <dpdk-build-dir>
>>> -$ make clean; make
>>> +$ make install T=x86_64-default-linuxapp-gcc
>>> CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC"
>>>     # If "conflicting types for skb_set_hash" error happens during dpdk
>>>   # build, then please knock-off skb_set_hash function from kcompat.h as
>>>
>>
>>
>> _______________________________________________
>> lng-odp mailing list
>> lng-odp@lists.linaro.org
>> http://lists.linaro.org/mailman/listinfo/lng-odp
>>
>
>
>
> --
> *Mike Holmes*
> Linaro Technical Manager / Lead
> LNG - ODP
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
>
diff mbox

Patch

diff --git a/platform/linux-dpdk/README b/platform/linux-dpdk/README
index 04a49d9..88ccbf8 100644
--- a/platform/linux-dpdk/README
+++ b/platform/linux-dpdk/README
@@ -21,7 +21,7 @@  $ cd <odp-dir>
 $ sudo ./bootstrap
 $ sudo ./configure --with-platform=linux-dpdk LDFLAGS=-L<dpdk-build-dir>/lib CFLAGS="-include <dpdk-build-dir>/include/rte_config.h -I<dpdk-build-dir>/include -I<dpdk-build-dir>/include/arch -I<dpdk-build-dir>/include/exec-env"
 # For example
-$ sudo ./configure --with-platform=linux-dpdk LDFLAGS=-L/root/dpdk/build/lib CFLAGS="-include /root/dpdk/build/include/rte_config.h -I/root/dpdk/build/include -I/root/dpdk/build/include/arch -I/root/dpdk/build/include/exec-env"
+$ sudo ./configure --with-platform=linux-dpdk LDFLAGS=-L/root/dpdk/x86_64-default-linuxapp-gcc/lib CFLAGS="-include /root/dpdk/x86_64-default-linuxapp-gcc/include/rte_config.h -I/root/dpdk/x86_64-default-linuxapp-gcc/include -I/root/dpdk/x86_64-default-linuxapp-gcc/include/arch -I/root/dpdk/x86_64-default-linuxapp-gcc/include/exec-env"
 $ sudo make clean
 $ sudo make
 
@@ -39,20 +39,7 @@  $ cd <dpdk-dir>
 
 # This has to be done only once.
 # Following command will generate build dir as ./build in <dpdk-dir>
-$ make config T=x86_64-default-linuxapp-gcc
-
-# If user wants to override and give a different name for build dir,
-# then that can be done using the following command
-$ make config T=x86_64-default-linuxapp-gcc O=my_sdk_build_dir
-
-$ vi <dpdk-build-dir>/.config and set CONFIG_RTE_BUILD_COMBINE_LIBS=y
-
-Note: If non-intel SFP's are used in NIC, then
-$ vi <dpdk-build-dir>/.config and
-set CONFIG_RTE_LIBRTE_IXGBE_ALLOW_UNSUPPORTED_SFP=y
-
-$ cd <dpdk-build-dir>
-$ make clean; make
+$ make install T=x86_64-default-linuxapp-gcc CONFIG_RTE_BUILD_COMBINE_LIBS=y EXTRA_CFLAGS="-fPIC" 
 
 # If "conflicting types for skb_set_hash" error happens during dpdk
 # build, then please knock-off skb_set_hash function from kcompat.h as