Lines Matching defs:cname
116 def set_canonical_name_suffix(suffix): return "[+ % name `export cname=$(echo %s" + suffix + " | sed -e 's/[^0-9A-Za-z@_]/_/g')` +]"
117 def cname(): return "[+ % name `echo $cname` +]"
361 r += var_set(cname() + "_SOURCES", platform_sources(platform) + " ## platform sources")
362 r += var_set("nodist_" + cname() + "_SOURCES", platform_nodist_sources(platform) + " ## platform nodist sources")
363 r += var_set(cname() + "_LDADD", platform_ldadd(platform))
364 r += var_set(cname() + "_CFLAGS", "$(AM_CFLAGS) $(CFLAGS_MODULE) " + platform_cflags(platform))
365 r += var_set(cname() + "_LDFLAGS", "$(AM_LDFLAGS) $(LDFLAGS_MODULE) " + platform_ldflags(platform))
366 r += var_set(cname() + "_CPPFLAGS", "$(AM_CPPFLAGS) $(CPPFLAGS_MODULE) " + platform_cppflags(platform))
367 r += var_set(cname() + "_CCASFLAGS", "$(AM_CCASFLAGS) $(CCASFLAGS_MODULE) " + platform_ccasflags(platform))
368 # r += var_set(cname() + "_DEPENDENCIES", platform_dependencies(platform) + " " + platform_ldadd(platform))
371 r += gvar_add("BUILT_SOURCES", "$(nodist_" + cname() + "_SOURCES)")
372 r += gvar_add("CLEANFILES", "$(nodist_" + cname() + "_SOURCES)")
378 [+ name +].marker: $(""" + cname() + """_SOURCES) $(nodist_""" + cname() + """_SOURCES)
379 $(TARGET_CPP) -DGRUB_LST_GENERATOR $(CPPFLAGS_MARKER) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(""" + cname() + """_CPPFLAGS) $(CPPFLAGS) $^ > $@.new || (rm -f $@; exit 1)
387 r += var_set(cname() + "_SOURCES", platform_startup(platform))
388 r += var_add(cname() + "_SOURCES", platform_sources(platform))
389 r += var_set("nodist_" + cname() + "_SOURCES", platform_nodist_sources(platform) + " ## platform nodist sources")
390 r += var_set(cname() + "_LDADD", platform_ldadd(platform))
391 r += var_set(cname() + "_CFLAGS", "$(AM_CFLAGS) $(CFLAGS_KERNEL) " + platform_cflags(platform))
392 r += var_set(cname() + "_LDFLAGS", "$(AM_LDFLAGS) $(LDFLAGS_KERNEL) " + platform_ldflags(platform))
393 r += var_set(cname() + "_CPPFLAGS", "$(AM_CPPFLAGS) $(CPPFLAGS_KERNEL) " + platform_cppflags(platform))
394 r += var_set(cname() + "_CCASFLAGS", "$(AM_CCASFLAGS) $(CCASFLAGS_KERNEL) " + platform_ccasflags(platform))
395 r += var_set(cname() + "_STRIPFLAGS", "$(AM_STRIPFLAGS) $(STRIPFLAGS_KERNEL) " + platform_stripflags(platform))
396 # r += var_set(cname() + "_DEPENDENCIES", platform_dependencies(platform) + " " + platform_ldadd(platform))
399 r += gvar_add("BUILT_SOURCES", "$(nodist_" + cname() + "_SOURCES)")
400 r += gvar_add("CLEANFILES", "$(nodist_" + cname() + "_SOURCES)")
410 else """ + "$(STRIP) $(" + cname() + "_STRIPFLAGS) $@; fi" ))
417 r += var_set(cname() + "_SOURCES", platform_sources(platform))
418 r += var_set("nodist_" + cname() + "_SOURCES", platform_nodist_sources(platform) + "## platform nodist sources")
419 r += var_set(cname() + "_LDADD", platform_ldadd(platform))
420 r += var_set(cname() + "_CFLAGS", "$(AM_CFLAGS) $(CFLAGS_IMAGE) " + platform_cflags(platform))
421 r += var_set(cname() + "_LDFLAGS", "$(AM_LDFLAGS) $(LDFLAGS_IMAGE) " + platform_ldflags(platform))
422 r += var_set(cname() + "_CPPFLAGS", "$(AM_CPPFLAGS) $(CPPFLAGS_IMAGE) " + platform_cppflags(platform))
423 r += var_set(cname() + "_CCASFLAGS", "$(AM_CCASFLAGS) $(CCASFLAGS_IMAGE) " + platform_ccasflags(platform))
424 r += var_set(cname() + "_OBJCOPYFLAGS", "$(OBJCOPYFLAGS_IMAGE) " + platform_objcopyflags(platform))
425 # r += var_set(cname() + "_DEPENDENCIES", platform_dependencies(platform) + " " + platform_ldadd(platform))
428 r += gvar_add("BUILT_SOURCES", "$(nodist_" + cname() + "_SOURCES)")
429 r += gvar_add("CLEANFILES", "$(nodist_" + cname() + "_SOURCES)")
437 $(OBJCOPY) $(""" + cname() + """_OBJCOPYFLAGS) --strip-unneeded -R .note -R .comment -R .note.gnu.build-id -R .reginfo -R .rel.dyn -R .interp -R .dynamic -R .hash -R .SUNW_ldynsym -R .dynsym -R .dynstr -R .SUNW_dynsymsort $< $@; \
445 r += vars_init(cname() + "_SOURCES",
446 "nodist_" + cname() + "_SOURCES",
447 cname() + "_CFLAGS",
448 cname() + "_CPPFLAGS",
449 cname() + "_CCASFLAGS")
450 # cname() + "_DEPENDENCIES")
453 r += var_add(cname() + "_SOURCES", platform_sources(platform))
454 r += var_add("nodist_" + cname() + "_SOURCES", platform_nodist_sources(platform))
455 r += var_add(cname() + "_CFLAGS", first_time("$(AM_CFLAGS) $(CFLAGS_LIBRARY) ") + platform_cflags(platform))
456 r += var_add(cname() + "_CPPFLAGS", first_time("$(AM_CPPFLAGS) $(CPPFLAGS_LIBRARY) ") + platform_cppflags(platform))
457 r += var_add(cname() + "_CCASFLAGS", first_time("$(AM_CCASFLAGS) $(CCASFLAGS_LIBRARY) ") + platform_ccasflags(platform))
458 # r += var_add(cname() + "_DEPENDENCIES", platform_dependencies(platform) + " " + platform_ldadd(platform))
461 r += first_time(gvar_add("BUILT_SOURCES", "$(nodist_" + cname() + "_SOURCES)"))
462 r += first_time(gvar_add("CLEANFILES", "$(nodist_" + cname() + "_SOURCES)"))
490 r += var_set(cname() + "_SOURCES", platform_sources(platform))
491 r += var_set("nodist_" + cname() + "_SOURCES", platform_nodist_sources(platform))
492 r += var_set(cname() + "_LDADD", platform_ldadd(platform))
493 r += var_set(cname() + "_CFLAGS", "$(AM_CFLAGS) $(CFLAGS_PROGRAM) " + platform_cflags(platform))
494 r += var_set(cname() + "_LDFLAGS", "$(AM_LDFLAGS) $(LDFLAGS_PROGRAM) " + platform_ldflags(platform))
495 r += var_set(cname() + "_CPPFLAGS", "$(AM_CPPFLAGS) $(CPPFLAGS_PROGRAM) " + platform_cppflags(platform))
496 r += var_set(cname() + "_CCASFLAGS", "$(AM_CCASFLAGS) $(CCASFLAGS_PROGRAM) " + platform_ccasflags(platform))
497 # r += var_set(cname() + "_DEPENDENCIES", platform_dependencies(platform) + " " + platform_ldadd(platform))
500 r += gvar_add("BUILT_SOURCES", "$(nodist_" + cname() + "_SOURCES)")
501 r += gvar_add("CLEANFILES", "$(nodist_" + cname() + "_SOURCES)")