boards: correct path to RCRAWS files during file copy
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
37d7298f34
commit
f5665db1f2
@ -30,12 +30,12 @@ $(RCOBJS): $(ETCDIR)$(DELIM)%: %
|
||||
$(Q) mkdir -p $(dir $@)
|
||||
$(call PREPROCESS, $<, $@)
|
||||
|
||||
$(ETCSRC): $(RCRAWS) $(RCOBJS)
|
||||
$(ETCSRC): $(addprefix $(BOARD_DIR)$(DELIM)src$(DELIM),$(RCRAWS)) $(RCOBJS)
|
||||
$(foreach raw, $(RCRAWS), \
|
||||
$(shell rm -rf $(ETCDIR)$(DELIM)$(raw)) \
|
||||
$(shell mkdir -p $(dir $(ETCDIR)$(DELIM)$(raw))) \
|
||||
$(shell cp -rfp $(raw) $(ETCDIR)$(DELIM)$(raw)))
|
||||
$(Q) genromfs -f romfs.img -d $(ETCDIR)$(DELIM)$(CONFIG_NSH_ROMFSMOUNTPT) -V "$(basename $<)"
|
||||
$(shell cp -rfp $(BOARD_DIR)$(DELIM)src$(DELIM)$(raw) $(ETCDIR)$(DELIM)$(raw)))
|
||||
$(Q) genromfs -f romfs.img -d $(ETCDIR)$(DELIM)$(CONFIG_NSH_ROMFSMOUNTPT) -V "NSHInitVol"
|
||||
$(Q) echo "#include <nuttx/compiler.h>" > $@
|
||||
$(Q) xxd -i romfs.img | sed -e "s/^unsigned char/const unsigned char aligned_data(4)/g" >> $@
|
||||
$(Q) rm romfs.img
|
||||
|
1
boards/arm/samv7/common/.gitignore
vendored
Normal file
1
boards/arm/samv7/common/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/etctmp*
|
Loading…
Reference in New Issue
Block a user