Skip to content

Commit 0380c68

Browse files
committed
Enable CONFIG_PACKET
Without CONFIG_PACKET, the kernel refuses AF_PACKET sockets, so those utilities can't run. For user-level networking in virtualized setups especially when the test harness relies on DHCP. Thus, we should enable CONFIG_PACKET (built-in or module) in the guest kernel.
1 parent ea801a2 commit 0380c68

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ build-image:
251251
clean:
252252
$(Q)$(RM) $(BIN) $(OBJS) $(deps)
253253
$(Q)$(MAKE) -C mini-gdbstub clean
254-
$(Q)$(MAKE) -C minislirp/src clean
254+
$(Q)if [ -n "$(MINISLIRP_DIR)" ] && [ -d "$(MINISLIRP_DIR)/src" ]; then \
255+
$(MAKE) -C $(MINISLIRP_DIR)/src clean; \
256+
fi
255257

256258
distclean: clean
257259
$(Q)$(RM) riscv-harts.dtsi

configs/linux.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ CONFIG_NET=y
472472
#
473473
# Networking options
474474
#
475-
# CONFIG_PACKET is not set
475+
CONFIG_PACKET=y
476476
CONFIG_UNIX=y
477477
CONFIG_UNIX_SCM=y
478478
CONFIG_AF_UNIX_OOB=y

scripts/build-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function do_buildroot
3535
{
3636
if [ ! -d buildroot ]; then
3737
echo "Cloning Buildroot..."
38-
ASSERT git clone https://github.com/buildroot/buildroot -b 2024.11.1 --depth=1
38+
ASSERT git clone https://github.com/buildroot/buildroot -b 2025.02.x --depth=1
3939
else
4040
echo "buildroot/ already exists, skipping clone"
4141
fi

0 commit comments

Comments
 (0)