Prevent make defconfig from overwriting devices
This commit is contained in:
@@ -576,10 +576,11 @@ fromSource() {
|
|||||||
|
|
||||||
# Only compile our target
|
# Only compile our target
|
||||||
echo "CONFIG_TARGET_MULTI_PROFILE=n" >> .config
|
echo "CONFIG_TARGET_MULTI_PROFILE=n" >> .config
|
||||||
|
make defconfig # normalize .config and remove dupes
|
||||||
|
# make defconfig will add these back
|
||||||
sed -i '/CONFIG_TARGET_DEVICE_/d' .config
|
sed -i '/CONFIG_TARGET_DEVICE_/d' .config
|
||||||
echo "CONFIG_TARGET_DEVICE_${P_ARR[target]//\//_}_DEVICE_${P_ARR[profile]}=y" >> .config
|
echo "CONFIG_TARGET_DEVICE_${P_ARR[target]//\//_}_DEVICE_${P_ARR[profile]}=y" >> .config
|
||||||
|
|
||||||
make defconfig # normalize .config and remove dupes
|
|
||||||
make targetclean
|
make targetclean
|
||||||
make download &&
|
make download &&
|
||||||
make -j"$(nproc)" world
|
make -j"$(nproc)" world
|
||||||
|
|||||||
Reference in New Issue
Block a user