Changeset 95aed62 in mainline


Ignore:
Timestamp:
2018-03-06T18:12:14Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
1033d1fb
Parents:
db3c8834
Message:

todo

Files:
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    rdb3c8834 r95aed62  
    4949
    5050AUTOGEN = $(ROOT_PATH)/tools/autogen2.sh
    51 AGDEPEND = Makefile.ag.depend
    5251RAW = kernel.raw
    5352BIN = kernel.bin
     
    134133-include arch/$(KARCH)/Makefile.inc
    135134-include genarch/Makefile.inc
    136 -include $(AGDEPEND)
    137135
    138136## The at-sign
  • tools/autogen2.sh

    rdb3c8834 r95aed62  
    55# array subscript. Error handling is mostly omitted for simplicity, so any input that does not follow these rules will result
    66# in cryptic errors.
    7 
    8 echo $PWD
    97
    108input="$1"
  • uspace/Makefile.common

    rdb3c8834 r95aed62  
    6767CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config
    6868CONFIG_HEADER = $(ROOT_PATH)/config.h
     69
     70AUTOGEN = $(ROOT_PATH)/tools/autogen2.sh
    6971
    7072-include $(VERSION_DEF)
     
    352354        $(CC_JOB) -c -MD -MP $(DEFS) $(LIB_CFLAGS) $(EXTRA_CFLAGS)
    353355
     356%.ag.h %.ag.s %.ag.c %.ag.d: %.h
     357        CC="$(CC)" CFLAGS="$(CFLAGS)" $(AUTOGEN) $< $@
     358
    354359-include $(DEPENDS)
    355360
  • uspace/lib/c/Makefile

    rdb3c8834 r95aed62  
    4848-include arch/$(UARCH)/Makefile.inc
    4949
    50 ARCH_AUTOGENS_H := $(addsuffix .h,$(basename $(ARCH_AUTOGENS_AG)))
    51 ARCH_AUTOGENS_PROBE_C := $(addsuffix .ag.probe.c,$(basename $(ARCH_AUTOGENS_AG)))
    52 ARCH_AUTOGENS_PROBE_S := $(addsuffix .ag.probe.s,$(basename $(ARCH_AUTOGENS_AG)))
    53 
    54 PRE_DEPEND += $(ARCH_AUTOGENS_H)
    55 EXTRA_CLEAN += $(ARCH_AUTOGENS_H) $(ARCH_AUTOGENS_PROBE_C) $(ARCH_AUTOGENS_PROBE_S)
     50ARCH_AUTOGENS_PROBE_C := $(ARCH_AUTOGENS_AG:%.ag.h=.ag.c)
     51ARCH_AUTOGENS_PROBE_S := $(ARCH_AUTOGENS_AG:%.ag.h=.ag.s)
     52
     53PRE_DEPEND += $(ARCH_AUTOGENS_AG)
     54EXTRA_CLEAN += $(ARCH_AUTOGENS_AG) $(ARCH_AUTOGENS_PROBE_C) $(ARCH_AUTOGENS_PROBE_S)
    5655
    5756GENERIC_SOURCES = \
     
    194193include $(USPACE_PREFIX)/Makefile.common
    195194
    196 %.h: %.ag
    197         $(AUTOGEN) probe $< >$<.probe.c
    198         $(CC_AUTOGEN) $(DEFS) $(CFLAGS) -S -o $<.probe.s $<.probe.c
    199         $(AUTOGEN) generate $< <$<.probe.s >$@
    200 
    201195$(LIBC_PREFIX)/arch/$(UARCH)/_link.ld: $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld.in
    202196        $(CC) $(DEFS) $(CFLAGS) -DLIBC_PATH=$(CURDIR) -E -x c $< | grep -v "^\#" > $@
  • uspace/lib/c/arch/arm32/Makefile.inc

    rdb3c8834 r95aed62  
    3939
    4040ARCH_AUTOGENS_AG = \
    41         arch/$(UARCH)/include/libarch/istate_struct.ag \
    42         arch/$(UARCH)/include/libarch/fibril_context.ag
     41        arch/$(UARCH)/include/libarch/fibril_context.ag.h
    4342
    4443EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o
  • uspace/lib/c/arch/ia32/Makefile.inc

    rdb3c8834 r95aed62  
    3939
    4040ARCH_AUTOGENS_AG = \
    41         arch/$(UARCH)/include/libarch/istate_struct.ag \
    42         arch/$(UARCH)/include/libarch/fibril_context.ag
     41        arch/$(UARCH)/include/libarch/fibril_context.ag.h
    4342
    4443EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o
  • uspace/lib/c/arch/ia64/Makefile.inc

    rdb3c8834 r95aed62  
    3838
    3939ARCH_AUTOGENS_AG = \
    40         arch/$(UARCH)/include/libarch/istate_struct.ag \
    41         arch/$(UARCH)/include/libarch/fibril_context.ag
     40        arch/$(UARCH)/include/libarch/fibril_context.ag.h
    4241
    4342EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o
  • uspace/lib/c/arch/mips32/Makefile.inc

    rdb3c8834 r95aed62  
    3737
    3838ARCH_AUTOGENS_AG = \
    39         arch/$(UARCH)/include/libarch/istate_struct.ag \
    40         arch/$(UARCH)/include/libarch/fibril_context.ag
     39        arch/$(UARCH)/include/libarch/fibril_context.ag.h
    4140
    4241EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o
  • uspace/lib/c/arch/mips32eb/Makefile.inc

    rdb3c8834 r95aed62  
    3737
    3838ARCH_AUTOGENS_AG = \
    39         arch/$(UARCH)/include/libarch/istate_struct.ag \
    40         arch/$(UARCH)/include/libarch/fibril_context.ag
     39        arch/$(UARCH)/include/libarch/fibril_context.ag.h
    4140
    4241EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o
  • uspace/lib/c/arch/ppc32/Makefile.inc

    rdb3c8834 r95aed62  
    3737
    3838ARCH_AUTOGENS_AG = \
    39         arch/$(UARCH)/include/libarch/istate_struct.ag \
    40         arch/$(UARCH)/include/libarch/fibril_context.ag
     39        arch/$(UARCH)/include/libarch/fibril_context.ag.h
    4140
    4241EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o
  • uspace/lib/c/arch/riscv64/Makefile.inc

    rdb3c8834 r95aed62  
    3636
    3737ARCH_AUTOGENS_AG = \
    38         arch/$(UARCH)/include/libarch/istate_struct.ag \
    39         arch/$(UARCH)/include/libarch/fibril_context.ag
     38        arch/$(UARCH)/include/libarch/fibril_context.ag.h
    4039
    4140EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o
  • uspace/lib/c/arch/sparc64/Makefile.inc

    rdb3c8834 r95aed62  
    3636
    3737ARCH_AUTOGENS_AG = \
    38         arch/$(UARCH)/include/libarch/istate_struct.ag \
    39         arch/$(UARCH)/include/libarch/fibril_context.ag
     38        arch/$(UARCH)/include/libarch/fibril_context.ag.h
    4039
    4140EXTRA_OUTPUT += arch/$(UARCH)/src/entry.o
Note: See TracChangeset for help on using the changeset viewer.