How to add a shell script as a package in menuconfig?

I have made a shell script and I want to add that shell script as a package in menuconfig. Please tell me the steps to do the same.
Thanks.

is it important to have it as a menuconfig(urable) package/option, or to have it included in the image ?

1 Like

You can simply include the script with custom files:

Otherwise, it requires packaging:

1 Like

Yes, it is important to have it in the menuconfig. After selecting the package and compiling the image. My script should be present in the given directory (/usr/bin)
I don't know the below task.
1: Where should I put my script in the buildroot
2: How to write a Makefile for the task?

I know I can do the same task via creating a directory named as files in the buildroot but I want my script as a package in the menuconfig.

please @VincentR help me.

Take a look here

1 Like

thank you. It worked.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.