Re: Fix in ACPICA tools broke cross compilation of tools/power/acpi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 3, 2016 at 5:04 PM, Zheng, Lv <lv.zheng@xxxxxxxxx> wrote:
>> On Sun, Oct 30, 2016 at 9:04 AM, Zheng, Lv <lv.zheng@xxxxxxxxx> wrote:

>> >> > > Please try this patch:
>> >> > > https://patchwork.kernel.org/patch/9392155/
>> >> > > Which makes tools/power/acpi build more robust to survive toolchains that are not generated
>> from
>> >> the
>> >> > current kernel header.
>> >> >
>> >> >
>> >> > Better, but no, it doesn't fully fix the issue.
>> >> >
>> >> >  DESCEND  power/acpi
>> >> >  DESCEND  tools/acpidbg
>> >> > output/host/usr/bin/i586-buildroot-linux-uclibc-gcc -D_LINUX
>> >> > -I../../../include -I..
>> >> > /../../drivers/acpi/acpica -Wall -Wstrict-prototypes
>> >> > -Wdeclaration-after-statement -O1 -g -DDEBUG -DACPI_APPLICATI
>> >> > ON -DACPI_SINGLE_THREAD -DACPI_DEBUGGER -I.
>> >> > -I../../../../../drivers/acpi/acpica -I../../include   -c -o acpidbg.o
>> >> > acpidbg.c
>> >> > acpidbg.c:12:23: fatal error: acpi/acpi.h: No such file or directory
>> >> > #include <acpi/acpi.h>
>> >> >                       ^
>> >

The following fixing the above issue...

--- a/tools/power/acpi/Makefile.rules
+++ b/tools/power/acpi/Makefile.rules
@@ -10,13 +10,13 @@

objdir := $(OUTPUT)tools/$(TOOL)/
toolobjs := $(addprefix $(objdir),$(TOOL_OBJS))
-$(OUTPUT)$(TOOL): $(KERNEL_INCLUDE) $(toolobjs) FORCE
+$(OUTPUT)$(TOOL): $(KERNEL_INCLUDE)/acpi $(toolobjs) FORCE
       $(ECHO) "  LD      " $(subst $(OUTPUT),,$@)
       $(QUIET) $(LD) $(CFLAGS) $(LDFLAGS) $(toolobjs) -L$(OUTPUT) -o $@
       $(ECHO) "  STRIP   " $(subst $(OUTPUT),,$@)
       $(QUIET) $(STRIPCMD) $@

-$(KERNEL_INCLUDE):
+$(KERNEL_INCLUDE)/acpi:
       $(ECHO) "  MKDIR   " $(subst $(OUTPUT),,$@)
       $(QUIET) mkdir -p $(KERNEL_INCLUDE)
       $(ECHO) "  CP      " $(subst $(OUTPUT),,$@)


But reveals another, the output path is broken:

output/host/usr/bin/i586-buildroot-linux-uclibc-gcc -c -D_LINUX -I
$OUT/include -I $SRC/tools/power/acpi/../../../drivers/acpi/acpica
-Wall -Wst
rict-prototypes -Wdeclaration-after-statement -O1 -g -DDEBUG
-DACPI_APPLICATION -DACPI_SINGLE_THREAD -DACPI_DEBUGG
ER -I. -o $OUT/tools/acpidbg/acpidbg.o acpidbg.c
Assembler messages:
Fatal error: can't create $OUT/tools/acpidbg/acpidbg.o: No such file
or directory
../../Makefile.rules:26: recipe for target '$OUT/tools/acpidbg/acpidbg.o' failed

$OUT — path to O=
$SRC — path to kernel sources

-- 
With Best Regards,
Andy Shevchenko
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux