@ -6,106 +6,79 @@
#
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( INCLUDE_DIR ) / i m a g e . m k
PKG_NAME := ls-ppa
PKG_SOURCE_DATE := 2018-01-18
PKG_VERSION := lsdk-1806
PKG_RELEASE := 1
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL := https://github.com/yangbolu1991/ppa-binary.git
PKG_SOURCE_VERSION := cd295be24cadae51741154f3b1c935c7b9064230
PKG_MIRROR_HASH := 743ca493f640d5fb2e99ad7b1da030f9088546f1ad70b5d1e61eb98a969c00c5
PKG_BUILD_DIR = $( BUILD_DIR) /$( PKG_NAME) -$( PKG_VERSION) -$( BUILD_VARIANT) /$( PKG_NAME) -$( PKG_VERSION)
PKG_FLAGS := nonshared
PKG_SOURCE_VERSION := 73ce533bed868717b891e5dbf881428f56f11b4e
PKG_MIRROR_HASH := d917a692197e8c3c3db6de1f8a4bc0e52dca5fc6fa84a02d68d79072cd6cbc3f
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e p p a / D e f a u l t
TITLE:=
CONFIG:=
e n d e f
d e f i n e p p a / l s 1 0 4 3 a r d b
TITLE = PPA firmware $( PKG_VERSION) for NXP ls1043ardb 64b/32b Dev Board
CONFIG = ppa-ls1043a.itb
d e f i n e P a c k a g e / l a y e r s c a p e - p p a / C o n f i g
define Package/layerscape-ppa-$( 1)
SECTION:= firmware
CATEGORY:= Firmware
TITLE:= $( 2)
DEPENDS:= @TARGET_layerscape
CONFIG:= $( 3)
endef
e n d e f
d e f i n e p p a / l s 1 0 4 6 a r d b
TITLE = PPA firmware $( PKG_VERSION) for NXP ls1046ardb 64b/32b Dev Board
CONFIG = ppa-ls1046 a.itb
d e f i n e P a c k a g e / l a y e r s c a p e - p p a / l s 1 0 1 2 a r d b
TITLE:= NXP LS1012ARDB PPA binary
CONFIG:= ppa-ls1012 a.itb
e n d e f
d e f i n e p p a / l s 1 0 1 2 a r d b
TITLE = PPA firmware $( PKG_VERSION) for NXP ls1012ardb 64b/32b Dev Board
CONFIG = ppa-ls1012a.itb
d e f i n e P a c k a g e / l a y e r s c a p e - p p a / l s 1 0 1 2 a f r d m
TITLE:= NXP LS1012AFRDM PPA binary
CONFIG: = ppa-ls1012a.itb
e n d e f
d e f i n e p p a / l s 1 0 8 8 a r d b
TITLE = PPA firmware $( PKG_VERSION) for NXP ls1088ardb 64b/32b Dev Board
CONFIG = ppa-ls1088 a.itb
d e f i n e P a c k a g e / l a y e r s c a p e - p p a / l s 1 0 4 3 a r d b
TITLE:= NXP LS1043ARDB PPA binary
CONFIG:= ppa-ls1043 a.itb
e n d e f
d e f i n e p p a / l s 2 0 8 8 a r d b
TITLE = PPA firmware $( PKG_VERSION) for NXP ls2088ardb 64b/32b Dev Board
CONFIG = ppa-ls2088 a.itb
d e f i n e P a c k a g e / l a y e r s c a p e - p p a / l s 1 0 4 6 a r d b
TITLE:= NXP LS1046ARDB PPA binary
CONFIG:= ppa-ls1046 a.itb
e n d e f
d e f i n e p p a / l s 1 0 1 2 a f r d m
TITLE = PPA firmware $( PKG_VERSION) for NXP ls1012afrdm 64b/32b Dev Board
CONFIG = ppa-ls1012a.itb
e n d e f
PPAS := \
ls1043ardb \
ls1046ardb \
ls1012ardb \
ls1088ardb \
ls2088ardb \
ls1012afrdm
d e f i n e P a c k a g e / p p a / t e m p l a t e
d e f i n e P a c k a g e / l a y e r s c a p e - p p a - $( 1)
SECTION:= firmware
CATEGORY:= Firmware
DEPENDS:= @TARGET_layerscape
TITLE:= $( 2)
VARIANT:= $( 1)
e n d e f
d e f i n e P a c k a g e / l a y e r s c a p e - p p a / l s 1 0 8 8 a r d b
TITLE:= NXP LS1088ARDB PPA binary
CONFIG:= ppa-ls1088a.itb
e n d e f
d e f i n e B u i l d P P A P a c k a g e
$( eval $( ppa/Default) )
$( eval $( ppa/$( 1) ) )
$( call Package/ppa/template,$( 1) ,$( TITLE) )
d e f i n e P a c k a g e / l a y e r s c a p e - p p a / l s 2 0 8 8 a r d b
TITLE:= NXP LS2088ARDB PPA binary
CONFIG:= ppa-ls2088a.itb
e n d e f
i f d e f B U I L D _ V A R I A N T
$( eval $ ( call ppa /$ ( BUILD_VARIANT ) ) )
PPA_CONFIG := $( if $( CONFIG) ,$( CONFIG) ,$( BUILD_VARIANT) )
e n d i f
d e f i n e B u i l d / C o m p i l e
e n d e f
d e f i n e P a c k a g e / p p a / i n s t a l l / d e f a u l t
d e f i n e P a c k a g e / l a y e r s c a p e - p p a / I n s t a l l
define Package/layerscape-ppa-$( 1) /install
$( INSTALL_DIR) $( STAGING_DIR_IMAGE)
$( CP) $( PKG_BUILD_DIR) /$( PPA_CONFIG) $( STAGING_DIR_IMAGE) /$( 1) -ppa.itb
e n d e f
d e f i n e P a c k a g e / p p a / i n s t a l l / t e m p l a t e
d e f i n e P a c k a g e / l a y e r s c a p e - p p a - $( 1) / i n s t a l l
$( call Package/ppa/install/default,$( 2) )
$( CP) $( PKG_BUILD_DIR) /$( CONFIG) $( STAGING_DIR_IMAGE) /$( 1) -ppa.itb
endef
e n d e f
e n d e f
$( foreach r ,$ ( PPAS ) , \
$( eval $( call Package/ppa/install/template,$( r) ,$( r) ) ) \
)
$( foreach r ,$ ( PPAS ) , \
$( eval $( call BuildPPAPackage,$( r) ) ) \
$( eval $( call BuildPackage,layerscape-ppa-$( r) ) ) \
PPAS := \
ls1012ardb \
ls1012afrdm \
ls1043ardb \
ls1046ardb \
ls1088ardb \
ls2088ardb
$( foreach ppa ,$ ( PPAS ) , \
$( eval $( Package/layerscape-ppa/$( ppa) ) ) \
$( eval $( call Package/layerscape-ppa/Config,$( ppa) ,$( TITLE) ,$( CONFIG) ) ) \
$( eval $( call Package/layerscape-ppa/Install,$( ppa) ) ) \
$( eval $( call BuildPackage,layerscape-ppa-$( ppa) ) ) \
)