mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
Fix asm file handling on ELF, and remove workarounds.
* genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
and -DASM_FILE=1 appropiately (copied from `class Images' stanza).
* kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
* kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
This commit is contained in:
1 parent
3f3ec72b38
commit
15355c7d2f
4 files changed
+12
-5
No files matched your search
@@ -280,10 +280,12 @@ MOSTLYCLEANFILES += #{deps_str}
|
||||
src = sources[i]
|
||||
fake_obj = File.basename(src).suffix('o')
|
||||
dep = deps[i]
|
||||
flag = if /\.c$/ =~ src then 'CFLAGS' else 'ASFLAGS' end
|
||||
extra_flags = if /\.S$/ =~ src then '-DASM_FILE=1' else '' end
|
||||
dir = File.dirname(src)
|
||||
|
||||
"#{obj}: #{src} $(#{src}_DEPENDENCIES)
|
||||
$(TARGET_CC) -I#{dir} -I$(srcdir)/#{dir} $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) $(#{prefix}_CFLAGS) -MD -c -o $@ $<
|
||||
$(TARGET_CC) -I#{dir} -I$(srcdir)/#{dir} $(TARGET_CPPFLAGS) #{extra_flags} $(TARGET_#{flag}) $(#{prefix}_#{flag}) -MD -c -o $@ $<
|
||||
-include #{dep}
|
||||
|
||||
"
|
||||
|
||||
Reference in new issue
Block a user