unset executable bit on firmware image

This firmware is not meant to be executed on the host machine, so
unset its executable bit.  Noticed by lintian.

While at it, teach stage1 builds to recover from interrupted builds by
ensuring *stage1.bin are not present until all of the relevant
commands have been run.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
This commit is contained in:
Jonathan Nieder authored and Xiangfu Liu committed 2010-05-11 17:08:25 +08:00
1 parent 4ffa696025
commit e140411424
3 files changed
+7 -2

No files matched your search

+3 -1
View File
@@ -23,10 +23,12 @@ OBJS = head.o main.o common.o board_4740.o board_4750.o debug.o
all: xburst_stage1.bin
xburst_stage1.bin: xburst_stage1.elf
$(CROSS_COMPILE)objcopy -O binary $< $@
$(CROSS_COMPILE)objcopy -O binary $< $@+
$(CROSS_COMPILE)objdump -D $< > xburst_stage1.dump
$(CROSS_COMPILE)objdump -h $< > xburst_stage1.map
$(CROSS_COMPILE)nm -n $< > System.map
chmod -x $@+
mv -f $@+ $@
xburst_stage1.elf: $(OBJS)
$(CROSS_COMPILE)ld $(LDFLAGS) $(OBJS) -o $@
+1
View File
@@ -37,6 +37,7 @@ OBJS = main.o udc.o cache.o serial.o boothandler.o nandflash_4740.o nandflash_47
all: xburst_stage2.elf
$(OBJCOPY) -O binary xburst_stage2.elf xburst_stage2.bin
chmod -x xburst_stage2.bin
$(OBJDUMP) -D xburst_stage2.elf > xburst_stage2.dump
$(NM) xburst_stage2.elf | sort > xburst_stage2.sym
$(OBJDUMP) -h xburst_stage2.elf > xburst_stage2.map
+3 -1
View File
@@ -21,10 +21,12 @@ OBJS = head.o stage1.o serial.o
all: stage1.bin
stage1.bin: stage1.elf
$(CROSS_COMPILE)objcopy -O binary $< $@
$(CROSS_COMPILE)objcopy -O binary $< $@+
$(CROSS_COMPILE)objdump -D $< > stage1.dump
$(CROSS_COMPILE)objdump -h $< > stage1.map
$(CROSS_COMPILE)nm -n $< > System.map
chmod -x $@+
mv -f $@+ $@
stage1.elf: $(OBJS)
$(CROSS_COMPILE)ld $(LDFLAGS) $(OBJS) -o $@