Skip to content

Fix installation path for ptp4l package #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ source: build_armhf/.config build_x86_64/.config

PTP4L = build_armhf/target/usr/sbin/ptp4l
OPKG_BUILD = build_armhf/host/bin/opkg-build
FAKEROOT = build_armhf/host/bin/fakeroot
PACKAGE = linuxptp_$(LINUXPTP_VERSION)_armhf.ipk

build_armhf/.config: defconfig_armhf .gitmodules
Expand All @@ -31,7 +32,7 @@ build_armhf/.config: defconfig_armhf .gitmodules
$(PTP4L) $(OPKG_BUILD): build_armhf/.config
$(MAKE) -C build_armhf

package/bin/ptp4l: $(PTP4L)
package/usr/sbin/ptp4l: $(PTP4L)
install -D $< $@

package/CONTROL/control: control
Expand All @@ -40,8 +41,11 @@ package/CONTROL/control: control

.PHONY: package
package: $(PACKAGE)
$(PACKAGE): package/CONTROL/control package/bin/ptp4l
$(OPKG_BUILD) package
$(PACKAGE): package/CONTROL/control package/usr/sbin/ptp4l
$(FAKEROOT) -- sh -c ' \
chown 0.0 package && \
$(OPKG_BUILD) package \
'

#
# Targets for building the x86 Docker container
Expand Down