Making all kernel modules built-in

Hi guys,

I'm trying to follow the "making all kernel modules built-in" instruction from https://openwrt.org/docs/guide-user/additional-software/saving_space but keep getting error:

make: *** No rule to make target 'sed'. Stop

I'm trying to add luci to a 4MB image, any assistance would be greatly appreciated.

There is not enough context to answer your question. Please post some more lines leading to the error and mention the commands you used.

I was using command make image PROFILE=tl-wr840n-v5 sed -i 's/=m/=y/g;' build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-4.14.63/.config

I bet the sed part till the end of the command should be a separate command to be executed before make image, i.e.

sed -i 's/=m/=y/g;' build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/linux-4.14.63/.config
make image PROFILE=tl-wr840n-v5

You cannot build kernel with imagebuilder