Skip to content

Commit

Permalink
disable CONFIG_BOOTP_PREFER_SERVERIP
Browse files Browse the repository at this point in the history
  • Loading branch information
takumin committed Sep 26, 2022
1 parent 14c0d65 commit 6db45e1
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 22 deletions.
1 change: 0 additions & 1 deletion configs/bcm2708_rpi_b_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2708_rpi_b_plus_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2708_rpi_b_rev1_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2708_rpi_cm_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2708_rpi_zero_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2708_rpi_zero_w_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2709_rpi_2_b_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2710_rpi_2_b_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2710_rpi_3_b_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2710_rpi_3_b_plus_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2710_rpi_cm3_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2710_rpi_zero_2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2710_rpi_zero_2_w_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2711_rpi_400_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2711_rpi_4_b_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
1 change: 0 additions & 1 deletion configs/bcm2711_rpi_cm4_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ CONFIG_CMD_DNS=y
CONFIG_CMD_SNTP=y
CONFIG_CMD_LINK_LOCAL=y
CONFIG_BOOTP_SEND_HOSTNAME=y
CONFIG_BOOTP_PREFER_SERVERIP=y
CONFIG_BOOTP_DNS2=y
CONFIG_BOOTP_NISDOMAIN=y
CONFIG_BOOTP_NTPSERVER=y
Expand Down
6 changes: 0 additions & 6 deletions scripts/generate-defconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ for defconfig in "${CONFIG_DIR}"/*; do
echo 'CONFIG_BOOTP_SEND_HOSTNAME=y' >> "${defconfig}"
fi

if grep -Eqs "CONFIG_BOOTP_PREFER_SERVERIP=.*" "${defconfig}"; then
sed -i -E 's/CONFIG_BOOTP_PREFER_SERVERIP=.*/CONFIG_BOOTP_PREFER_SERVERIP=y/' "${defconfig}"
else
echo 'CONFIG_BOOTP_PREFER_SERVERIP=y' >> "${defconfig}"
fi

if grep -Eqs "CONFIG_BOOTP_DNS2=.*" "${defconfig}"; then
sed -i -E 's/CONFIG_BOOTP_DNS2=.*/CONFIG_BOOTP_DNS2=y/' "${defconfig}"
else
Expand Down

0 comments on commit 6db45e1

Please sign in to comment.