i use buildroot to build my own rootfs and use post-build.sh to customize it.
In concrete i create a textfile in /opt with
touch $TARGET_DIR/opt/testfile01.txt
and run the make command. I checked the out coming rootfs and testfile01.txt is in /opt. Everyting ok.
Then I change the content of my post-build-sh to
touch $TARGET_DIR/opt/testfile02.txt
and run the make command again.
The behaviour i observe is that both files (testfile01 and testfile02) exists in rootfs after the second make. Also removing rootfs and than run make command do not change this behavior.
In buildroot manual is written that there is no need for a full rebuild after make changes in post-build scripts.
How can in change this behaviour?
Thanks for helping
Edit: buildroot-2018.02.2, Ubuntu 18.04 LTS