OpenWrt Forum Archive

Topic: Insert file in opewrt build

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi guy,
i want add some file (like ***.bin) inside opewrt build.i read in wiki than for make this i must  to add a new directory in build system and call it "files" and  put all there, ok them spoke about configuration file, but i try to put there a structure of directory like /file/etc/oscam/oscam.bin  ,but at end of build process there isn't nothing inside openwrt.. i try also to put inside /package/base-file/etc but nothing same story..
somebody can help me pls
tnks in advance

Did you try target/linux/generic/files/?

logg wrote:

/file/etc/oscam/oscam.bin

try files/etc/oscam/oscam.bin instead!

(Last edited by tl71 on 17 Jun 2013, 17:18)

the "files" folder must be in the folder where you issue the make command. For example

for reference, you will also have
~/user/openwrt/attitude/bin
~/user/openwrt/attitude/build_dir
~/user/openwrt/attitude/staging_dir
...

you just add your files folder like so...
~/usr/openwrt/attitude/files <------

then put all the files you want in there

for example
~/usr/openwrt/attitude/files/usr/bin/my.exe

after you flash the bin it will appear on the target as
/usr/bin/my.exe

rough

The discussion might have continued from here.