Signed-off-by: Michael Buesch <mb@bu3sch.de>
$(QUIET_CC) $(CFLAGS) -o $(BIN) $(call OBJS,$(SRCS)) $(LDFLAGS)
install: all
- install -o 0 -g 0 -m 755 $(BIN) $(PREFIX)/bin/
+ install -m 755 $(BIN) $(PREFIX)/bin/
cp b43-asm b43-asm.inst
sed -i -e 's/installed=0/installed=1/' b43-asm.inst
- install -o 0 -g 0 -m 755 b43-asm.inst $(PREFIX)/bin/b43-asm
+ install -m 755 b43-asm.inst $(PREFIX)/bin/b43-asm
rm -f b43-asm.inst
clean:
data = ord(ivals[idx + 2]) << 8
data |= ord(ivals[idx + 3]) << 0
idx += 4
- print "\tmmio16\t0x%08X, 0x%04X" % (data, offset)
+ print "\tmmio16\t0x%04X, 0x%04X" % (data, offset)
if size == 4:
print "\tmmio32\t0x%08X, 0x%04X" % (value, addr)
elif size == 2:
- print "\tmmio16\t0x%08X, 0x%04X" % (value, addr)
+ if value & 0xFFFF0000:
+ print "The input file is malformed (invalid value for 16bit field)"
+ sys.exit(1)
+ print "\tmmio16\t0x%04X, 0x%04X" % (value, addr)
else:
print "The input file is malformed (invalid size field: 0x%04X)" % size
sys.exit(1)