opencomputeproject / onie

Open Network Install Environment
https://opencomputeproject.github.io/onie
Other
606 stars 376 forks source link

Add libpcap.make and tcpdump.make for tcpdump command/target #1061

Closed abhisit closed 4 months ago

abhisit commented 4 months ago

How did I test this Pull Request?

  1. Add the configurations to the machine name accton_as4630
    
    opencomputeproject-onie$ git diff
    diff --git a/machine/accton/accton_as4630/machine.make b/machine/accton/accton_as4630/machine.make
    index 4294ae97..5031ff02 100644
    --- a/machine/accton/accton_as4630/machine.make
    +++ b/machine/accton/accton_as4630/machine.make
    @@ -28,6 +28,9 @@ SKIP_ETHMGMT_MACS = yes
    UEFI_ENABLE = yes
    PXE_EFI64_ENABLE = yes

+LIBPCAP_ENABLE = yes +TCPDUMP_ENABLE = yes +

Console parameters

CONSOLE_DEV = 0

2. Make an image

$ cd build-config $ make JOBS= MACHINEROOT=../machine/accton MACHINE=accton_as4630 all


3. List the output files

opencomputeproject-onie$ ls -1 build/accton_as4630-r0/sysroot/usr/lib/libpcap libpcap.so libpcap.so.1 libpcap.so.1.10.4 opencomputeproject-onie$ ls -1 build/accton_as4630-r0/sysroot/usr/bin/tcpdump tcpdump

mshych commented 4 months ago

Thank you for commit and adding a new tool to ONIE. Pushed to master and tarballs added to ONIE mirror.