SOURCES := access.c pbdma.c phy.c pratic.c rx.c tx.c resys.c ifeq ($(CONFIG_TRACE),y) SOURCES += trace.c endif ifeq ($(CONFIG_BRIDGEDMA_SOFT),y) SOURCES += bridgedma_soft.c else SOURCES += bridgedma.c endif hal_phy_resys_prog_h = $(OBJ_DIR)/inc/hal_phy_resys_prog.h hal_phy_resys_offsettable_h = $(OBJ_DIR)/inc/hal_phy_resys_offsettable.h CLEAN_FILES += $(hal_phy_resys_prog_h) $(hal_phy_resys_offsettable_h) $(call src2obj,hal/phy/src/resys.c,target): $(hal_phy_resys_prog_h) \ $(hal_phy_resys_offsettable_h) hal_phy_resys_prog_hex = $(OBJ_DIR)/resys_mem.hex hal_phy_resys_offsettable_hex = $(OBJ_DIR)/offsettable_mem.hex hal_phy_hex2c = $(call src2src,hex2c.pl,hal/phy/src/resys) CLEAN_FILES += $(hal_phy_resys_prog_hex) $(hal_phy_resys_offsettable_hex) vpath $(hal_phy_hex2c) $(BASE) $(hal_phy_resys_prog_h): $(hal_phy_hex2c) $(hal_phy_resys_prog_hex) perl $^ > $@ $(hal_phy_resys_offsettable_h): $(hal_phy_hex2c) \ $(hal_phy_resys_offsettable_hex) perl $^ > $@ hal_phy_parasites = $(OBJ_DIR)/resys_mem.tsmc $(OBJ_DIR)/resys_mem.dis \ $(OBJ_DIR)/offsettable_mem.tsmc \ $(OBJ_DIR)/offsettable_mem.dis CLEAN_FILES += $(hal_phy_parasites) vpath %/resys_compil.pl $(BASE) vpath %/prog_resys.txt $(BASE) vpath %/resys_offsettable.txt $(BASE) $(hal_phy_resys_prog_hex) $(hal_phy_resys_offsettable_hex): \ $(call src2src,resys_compil.pl prog_resys.txt \ resys_offsettable.txt,hal/phy/src/resys) perl $^ -B $(OBJ_DIR) -D $(OBJ_DIR) > /dev/null