Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: bigguiness on January 31, 2023, 07:31:03 PM

Title: how to make Petalinux replace /etc/profile
Post by: bigguiness on January 31, 2023, 07:31:03 PM
Hello,

I have a modified /etc/profile that I have to copy manually to my board very time I do a 'petalinux-package ...'.

This works, but is annoying.

I have a recipe that copies a number of scripts, etc. to /home/root/bin when I do the 'petalinux-build' but when I tried adding the custom profile file and copying it to /etc/profile I get a build error. Something about a package conflict.

Does anyone know the proper way to replace that file during the build?

Thanks
Title: Re: how to make Petalinux replace /etc/profile
Post by: M Kirberg on February 01, 2023, 11:28:35 AM
Pretty simple, see example here for fstab:

https://github.com/rauc/meta-rauc-community/tree/master/meta-rauc-nxp/recipes-core/base-files