Remove IPV4 from features in targets.json

pull/4438/head
Yuguo Zou 2017-02-28 11:10:04 +08:00 committed by Martin Kojtal
parent 41f20d6913
commit ad85a1409b
2 changed files with 3 additions and 3 deletions

View File

@ -2915,7 +2915,7 @@
"progen_target": "rtl8195a",
"device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SPI", "TRNG", "EMAC"],
"default_build": "standard",
"features": ["IPV4", "LWIP"],
"features": ["LWIP"],
"post_binary_hook": {
"function": "RTL8195ACode.binary_hook",
"toolchains": ["ARM_STD", "GCC_ARM", "IAR"]

View File

@ -33,9 +33,9 @@ def write_fixed_width_string(value, width, output):
def write_fixed_width_value(value, width, output):
# convert to string
line = format(value, '0%dx' %(width))
line = format(value, '0%dx' % (width))
if len(line) > width:
print "[ERROR] value 0x%s cannot fit width %d" %(line, width)
print "[ERROR] value 0x%s cannot fit width %d" % (line, width)
sys.exit(-1)
# cut string to list & reverse
line = [line[i:i+2] for i in range(0, len(line), 2)]