Hi,
I'm currently trying to add a cutsom app to my cutsom image for raspi3 and I 
encountered a problem during the do_package phase of the build of the image.

ERROR: si4688-app-1.0-r0 do_package: Fatal errors occurred in subprocesses:
Command '['arm-poky-linux-gnueabi-objcopy', '--only-keep-debug', 
'/home/galletpb/Documents/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/si4688-app/1.0-r0/package/usr/bin/si4688-app',
 
'/home/galletpb/Documents/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/si4688-app/1.0-r0/package/usr/bin/.debug/si4688-app']'
 returned non-zero exit status 1.
Subprocess 
output:arm-poky-linux-gnueabi-objcopy:/home/galletpb/Documents/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/si4688-app/1.0-r0/package/usr/bin/si4688-app:
 file format not recognized

ERROR: Logfile of failure stored in: 
/home/galletpb/Documents/poky/build/tmp/work/cortexa7t2hf-neon-vfpv4-poky-linux-gnueabi/si4688-app/1.0-r0/temp/log.do_package.5485
ERROR: Task 
(/home/galletpb/Documents/poky/meta-my-layer/recipes-custom/si4688-app/si4688-app_1.0.bb:do_package)
 failed with exit code '1'

I wrote this simple recipe:

DESCRIPTION = "A SI4688 control application built with a Makefile."
SECTION = "Custom"

LICENSE = "GPLv2"
LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URIĀ  = "file://${BPN}"

S = "${WORKDIR}/${PN}"

do_compile() {
oe_runmake
}

do_install() {
oe_runmake DESTDIR="${D}${bindir}" install
}

I tried beforehand to add the line
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
to the pevious recipe but it doesn't work either.

Do you have any idea of what's wrong with this?

I share you my Makefile if it could be useful:

EXE=si4688-app
SRC=$(wildcard *.c)
OBJS=$(SRC:.c=.o)

.PHONY: all

all: $(EXE)

$(EXE): $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS)

gpio.o : gpio.h

si46xx_core.o : gpio.h si46xx.h

dabpi_ctl.o : si46xx.h version.h

si46xx_dab.o : si46xx.h

si46xx_fm.o : si46xx.h

%.o: %.c
$(CC) -o $@ -c $< $(CFLAGS)

.PHONY: clean

clean:
rm -rf *.o

.PHONY: mrproper

mrproper: clean
rm -rf $(EXE)

.PHONY: install

install: $(EXE)
install -m 0755 -d $(DESTDIR)
install -m 0755 $(EXE) $(DESTDIR)

Thanks for your time,
Bastien
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#49316): https://lists.yoctoproject.org/g/yocto/message/49316
Mute This Topic: https://lists.yoctoproject.org/mt/73971032/21656
Mute #yocto: https://lists.yoctoproject.org/mk?hashtag=yocto&subid=6691583
Group Owner: [email protected]
Unsubscribe: 
https://lists.yoctoproject.org/g/yocto/leave/6691583/737036229/xyzzy  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to