sonic-buildimage/platform/nephos/nephos-modules/debian/rules
simonJi2018 259d51a94f [nephos]: upgrade compile sdk.deb from online to dpkg and fix compile error (#2800)
* upgrade compile sdk.deb from online to dpkg and upgrade docker syncd and orchagent to stretch

* Delete docker-orchagent-nephos.mk

Delete docker-orchagent-nephos.mk

* Update docker-syncd-nephos.mk

* Update Dockerfile.j2
2019-04-29 18:25:40 -07:00

35 lines
884 B
Makefile
Executable File

#!/usr/bin/make -f
export INSTALL_MOD_DIR:=extra
PACKAGE_NAME := nephos-modules
KVERSION ?= $(shell uname -r)
KERNEL_SRC := /lib/modules/$(KVERSION)
SERVICE_DIR := service
INITD_DIR := init.d
MODULE_SRC := $(shell pwd)/modules
CURRENT_DIR := $(cd "$(dirname "$0")"; pwd)
%:
dh $@
override_dh_auto_build:
make -C $(MODULE_SRC)
override_dh_auto_install:
dh_installdirs -p$(PACKAGE_NAME) $(KERNEL_SRC)/extra
cp $(MODULE_SRC)/build/module/*.ko debian/$(PACKAGE_NAME)/$(KERNEL_SRC)/extra
dh_installdirs -p$(PACKAGE_NAME) /lib/systemd/system
cp $(MODULE_SRC)/service/*.service debian/$(PACKAGE_NAME)/lib/systemd/system/
dh_installdirs -p$(PACKAGE_NAME) /etc/init.d
cp $(MODULE_SRC)/init.d/* debian/$(PACKAGE_NAME)/etc/init.d/
override_dh_usrlocal:
override_dh_pysupport:
override_dh_clean:
dh_clean
test -d $(MODULE_SRC)/build || rm -rf $(MODULE_SRC)/build