Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/iproute2: recipe to build iproute2 tools #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions recipes/net/iproute2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
inherit: [cpackage, make, install]

metaEnvironment:
PKG_VERSION: "6.13.0"
PKG_LICENSE: "GPL-2.0+"

checkoutSCM:
scm: url
url: https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-${PKG_VERSION}.tar.xz
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's the KERNEL_MIRROR variable from basement -> ${KERNEL_MIRROR}/linux/utils/net/iproute2/iproute2-${PKG_VERSION}.tar.xz.

digestSHA256: "a43aa43338d882b44d01e549f3f105a92ae9feea32a82fae45a88e7a49302819"
stripComponents: 1

buildVars: [CC, AR]
buildTools: [host-toolchain, bison, flex]
buildScript: |
cp -a $1/ build/

pushd build
./configure

makeParallel \
CC="$CC" \
HOSTCC="gcc" \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buildroot also passes SHARED_LIBS=. Depending on the target environment, the basement recipes prefer static (host environment) or shared (target environment) libraries. Something like the following should do that:

SHARED_LIBS=$([[ $(cpackageLibraryType) == static ]] && echo n || echo y)

all

makeParallel \
DESTDIR=$BOB_CWD/install \
install

popd

packageScript: |
installPackageBin "$1/install/"